If you may have received an error, during WebSocket handshake Unexpected response code 400 on browser,

WebSocket connection to 'ws://192.168.0.1/socket.io/websocket&sid=12' failed: Error during WebSocket handshake: Unexpected response code: 400


 You have to specify the port sockets are going to use. Just had to write:


var ioSocket = io.connect('ws://192.168.0.1:1920');


You must use with port 1920. Source.