how to connect websockets through js console code example
Example: js connect to websocket
var exampleSocket = new WebSocket("wss://www.example.com/socketserver", "protocolOne");
var exampleSocket = new WebSocket("wss://www.example.com/socketserver", "protocolOne");