-
Notifications
You must be signed in to change notification settings - Fork 279
Connection closed before receiving a handshake response #12
Comments
You need to wait for the connection to establish, so instead of the line ws.send("test") do something like this:
|
No, That is resolving only
That was understood. But Handshake Error is still there
|
What browser do you use? This happens when you reload (and maybe leave) the page while having an open websocket connection. Just means that you have not closed it. To remove the message I guess you can do a ws.close() when the page unloads, but I do not know the JavaScript code for this. |
I am using chrome.
I am not reloading or navigating away. |
Try this html file from a similar issue posted on this project:
This one closes the connection after 1 sec, also the charset is set and its using the window.onload function. And yes you should see output on the terminal running ws_examples. |
Nah ! Same error. Is it still working at your system ? Please use the same steps as me. |
Yes this is working on Debian stable, testing and OS X. Do you get output when you start |
Also please try |
You can also open the console in Chrome, and type in the JavaScript commands yourself:
|
I do not get anything on running ./ws_examples When I do cmake, It ask for compiler 4.9. |
Strange you managed to compile it on g++ 4.8, I think regex was not supported before 4.9, and that is why you need g++ 4.9. I think it should be possible to install this on Ubuntu. Maybe do an upgrade on your system? g++ 4.9 is available in debian stable now, and should thus be installable on all its derivatives like Ubuntu (hopefully). |
I've made g++4.8 compilable fork but haven't updated code for a long time thou |
Okay , It seems the issue here then. It was compiling with g++ 4.8.2 and running but not giving any traces. Thanks for your time. Closing Issue :) |
I'm having this issue currently, and am running on windows. Any ideas on how I can get around this? Looks like I might just need to update visual studio |
I simply did
Then compiled in linux
Wrote a sample JS client as specified in documentation
But when I run client and server, It gives error
Can you please direct where is things going wrong ?
The text was updated successfully, but these errors were encountered: