Connection is established only after couple tries of connecting to the websocket server. #631
Replies: 9 comments
-
What is your reconnect function? |
Beta Was this translation helpful? Give feedback.
-
I updated uWebSockets.js to v20.0.0 and everything is fine so far. But it feels like the problem is not solved. Fells like connection drops depend on my server workload or network ping. I'll watch this situation and text here if problem be back again. |
Beta Was this translation helpful? Give feedback.
-
We're also experiencing similar issues, were you able to resolve this? |
Beta Was this translation helpful? Give feedback.
-
Maybe try to set a timeout to to your browser socket connection, something like this: https://stackoverflow.com/a/51547396/5660086 , you can try and change the timeout to 3000-4000 |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
I fixed my problem with help from this post: https://stackoverflow.com/questions/32777760/how-to-fix-missing-an-intermediate-chain-certificate-in-nodejs |
Beta Was this translation helpful? Give feedback.
-
Any Updates on this, guys ?? One more observation, connection is prone to getting closed even after first time the connection is established I guessing its related to something related to reverse proxy etc. but getting more clarity will make it super helpful to decide what to do next |
Beta Was this translation helpful? Give feedback.
-
Nobody is going to be able to get any kind of information from this kind of high level "my stack of random things is not working". The original video literally gives no information about anything at all. Its all implied. This is not how you build things. Start by getting your minimal functionality working properly and then add from that. Nobody is going to debug your whole unidentified heap of various components based on "uuh this is not working". We don't have any such issue with connections in the library so it's not here you report |
Beta Was this translation helpful? Give feedback.
-
You are correct @uNetworkingAB. I was attempting to get if anyone solved there own problem which is somewhat related to mine and that might help me debug my issues faster. Again not implying it's with an issue with the library. |
Beta Was this translation helpful? Give feedback.
-
Hello. I'm facing an issue and I dont know how to find what i'm doing wrong.
Problem:
Sometimes websocket client can't connect to the websocket server with the first try. Sometimes it needs more than 2 tries to connect. Here's video of my problem:
Websocket_problem.mp4
On the server side, "upgrade" and "open" callbacks are not reaching, so i can't find the reason of errors.
Any ideas what can be wrong?
Browser: Chrome 94.0.4606.81, tried with Firefox 93.0, same thing
uWebsSockets.js: 19.3.0
Beta Was this translation helpful? Give feedback.
All reactions