motor.js with websocket connection 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");