You are not logged in.
Hi,
I am trying to run the sample "Project31SimpleEchoServer", but it seems not working.
Loaded the html, got following in the text area:
WebSocket - status 0
onerror - code:undefined, reason:undefined, wasClean:undefined, status:3
onclose - code:1006, reason:, wasClean:false, status:3
Checked it in the Developer Tools, got following error:
Project31SimpleEchoServer.html:18 WebSocket connection to 'ws://desktop-emq701g/' failed: HTTP Authentication failed; no valid credentials available
init @ Project31SimpleEchoServer.html:18
onload @ Project31SimpleEchoServer.html:72
What do I need to config to be able to run this sample? I did not see other people here reported this.
Last edited by Bo (2016-12-03 13:39:29)
Offline
Tried another machine, did work.
So the problem could be the machine's environment, but what could affect a websocket server? As the browser is working with other websocket echo server.
Offline
Followed this link (http://cjihrig.com/blog/websockets-in-n … windows-7/) and created a websocket echo server by using Nodejs, it worked with the test html, so it looks like the Synopse sample echo server has something wrong, anybody else has encountered this before?
Offline
Usually, this is a port issue.
The port you expect to bind is already used by some service or program.
but I believe this is not the case for me as I created the NodeJS echo server on the same port, if I forgot to stop NodeJS one, the sample echo server could not started until I closed the NodeJS one.
Offline
In my case, was Skype using port 80.
Offline
Here is another issue:
I ran the echo server on a Windows Server 2003 R2 Standard Edition, and ran the test html in both Chrome and Edge, got different result:
Chrome: could not connect at all.
Edge: the server reported it was connected, but not the browser, and then the connection dropped automatically after a while.
What can I check why the echo server cannot be connected? And why the behavior are different between Chrome and Edge?
Offline
Another test case:
Running echo server on Windows 10, running browser locally, both Chrome and Edge are failed to connect, but IE can connect and gets echos.
Does Synopse Websocket only support IE?
Offline