Turn off websocket using single command

JavaScript

In the Chrome Console tab, you can easily disable WebSocket using:

queryObjects(WebSocket)

This will print list of active websocket connections. Then you have to make a right click on appeared websocket array and choose Store as global variable. It will be saved under temp2 variable (might 1, 3, 4, 5). Now you can actually close the rquired ws connection by typing:

temp2.close(1000, 'test')

Additional information

You can read about the code here