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

Autor
Alp Gul
Verzija
0.0.1.20211005172321
Napravljeno
19/09/2021
Ažurirano
05/10/2021
Licenca
Nije dostupno

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