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.org/scripts/432651/976567/WS%20Hook.js

Author
Alp Gul
Version
0.0.1.20211005172321
Created
2021-09-19
Updated
2021-10-05
License
N/A

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*/)