-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Websocket connection now failing without any apparent reasons #674
Comments
See #671 (comment). |
@Florrr Hi Florian! My app is running behind an nginx proxy server.
But when I run npm run server I get this error: If I run the server as follows:
Going in the browser to http://127.0.0.1:9000/myapp In Peerjs.vue I substitute the "old" Peer creation with:
Still get this error: How to solve the problem? |
@Florrr I opened a new issue here about the signaling server setup: peers/peerjs-server#193 |
I just spent three hours today diagnosing a similar problem. The SSL protocal sslv3 was being used. The node server had never been updated. sslv3 is deprecated. Need to make sure the node server, nginx, apache are using the latest tls 1.2 Or your browser will throw an error. In firefox... about:config security.tls |
I setup a signaling server on heroku to test it. peerjs.min.js is changing the protocol to ws (non secure)
https://javascript.info/websocket Says to use wss:// I think peerjs.min.js just needs to fix the parsing of the url. That's why we are receiving the SSL error. It's downgrading it to a ws:// connection. |
Interesting @natusdrew . So... @Florrr what kind of solutions can we use? At the moment I'm stuck here: peers/peerjs-server#193 |
@natusdrew you probably need to specify the "host"-value without the |
I left the web-app friday night with no problems.
Today, I'm experiencing something I do not understand, since during weekend I didn't touch anything at all:
I tried many times, and only twice I got the connection working fine (and without doing anything special)...

What kind of causes could lead the web socket connection to fail?
Looking forward to your kind help.
Marco
The text was updated successfully, but these errors were encountered: