WS Hook

WebSocket Hook

This script should not be not be installed directly. It is a library for other scripts to include with the meta directive // @require https://update.greasyfork.ip-ddns.com/scripts/432651/976567/WS%20Hook.js

लेखक
Alp Gul
आवृत्ती
0.0.1.20211005172321
बनवली
2021-09-19
अपडेट केली
2021-10-05
आकार
1.73 KB
License
नाही

WebSocket Hook

document.addEventListener('globalWebsocketMessage',()=>{});
document.addEventListener('globalWebsocketClose',()=>{});
webHook.filter=(args)=>{...return true;}
webHook.filterSend=(webSocket,args)=>{...return true;}
webHook.beginSend=(webSocket,args)=>{...}
webHook.endSend=(webSocket,args)=>{...}
webHook.WSList[/*index*/].send(/*data*/)