Websocket Hand Shake error

24 views
Skip to first unread message

kandari venkesh

unread,
May 20, 2016, 2:16:35 PM5/20/16
to XSockets.NET Developer forum
Hello,
When I try to run my server locally, I am having   "WebSocket connection to 'ws://127.0.0.1:4502/?persistentId=84096760-a35c-4dc7-b1b8-6d79b7f93217' failed: Error during WebSocket handshake: net::ERR_CONNECTION_RESET" This error. 

My server side code is  var socket = new XSockets.WebSocket(url || 'ws://127.0.0.1:4502', controllers || ['chat']);

Best regards,
Venkesh.

Ulf Björklund

unread,
May 20, 2016, 2:51:50 PM5/20/16
to XSockets.NET Developer forum
Hi Venkesh

I guess that you actually have the client side code set to

var socket = new XSockets.WebSocket(url || 'ws://127.0.0.1:4502', controllers || ['chat']);


and not the server side.

Anyway...
  • how do you host XSockets? 
  • Is the server really started? 
  • What URL do you have in your browser when trying to connect to the XSockets server (guessing that it says file://....)
Regards, Uffe
Reply all
Reply to author
Forward
0 new messages