Turn off websocket using single command

JavaScript

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

const _WebSocket = WebSocket
Websocket = undefined

// if you need to restore it without page reload
Websocket = _WebSocket