-
Notifications
You must be signed in to change notification settings - Fork 602
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
Issue with strange close connections #409
Comments
I have same issue |
Temporary fixed for my case by adding ping method, and if it fails - I using force reconnect |
Hi! Do you use ping/pong function of connection instance (WebSocketConnection) or you have implemented a custom ping/pong? |
@filmen @Sasha2018RL I stumble upon the same issue, did you solve this? |
I moved to socket io |
@Sasha2018RL Can you share your old ping method for temporary fix please? |
Hello,
I've a strange problem to keep a client connected for a long time.
Here is the scenario: my node app sends events to real-time dashboard where users are connected by browser via websocket and, sometimes the websocket connection doesn't remain up and the user doesn't receive the new events, expecially when a user is connected from home (ex. works in smartworking).
I've tried a lot of things:
keepalive: true, keepaliveInterval: 20000, keepaliveGracePeriod: 10000, dropConnectionOnKeepaliveTimeout: false, disableNagleAlgorithm: true, fragmentOutgoingMessages: false
I have tested the code it with lan, wi-fi and 4G tethering and I don't have any problem but my clients, with theirs connections, have this problem also after the use the keepalive module.
What can I do to fix this situation?
I'm working in a new version of app with node 14.15.2 and last version of module (1.0.33) but meanwhile I have to fix this issue.
Thanks in advice.
Node version: 6.14.4
Module version: 1.0.23
SO: Debian 10
The text was updated successfully, but these errors were encountered: