I would like to know if its possible to get active WebSockets of a Website.
An example would be: var x = document.findWebSocket()
.
The websockets would be listed in Chrome under the Network Tab (In the dev tools section). From there the websockets are listed under "WS". I want to be able to do x.emit(..);
as well.
So far i could only come up with var x = new WebSocket("wss://exampleUrl.com/socket.io/?EIO=3&transport=websocket", "protocol1");
. But this only adds a new Websocket with a different sid from the one that i want to emit messages from.
adding "&sid = {SID of Active Websocket}" would not work.