fariazz (5) [Avatar] Offline
#1
I put the web sockets example in listing 2.3 on my server and get this console error:

WebSocket connection to 'ws://EXAMPLE.COM/socket.io/?__sails_io_sdk_version=0.13.5&__sails_io_sdk_platform=browser&__sails_io_sdk_language=javascript&EIO=3&transport=websocket&sid=Vrj1AakIBagd3IoTAAAB' failed: Error during WebSocket handshake: Unexpected response code: 400

Yet everything works like a charm.