Skip to content
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

Sending ping from client side if the pong frame was lost #152

Open
imanf94 opened this issue Nov 14, 2023 · 0 comments
Open

Sending ping from client side if the pong frame was lost #152

imanf94 opened this issue Nov 14, 2023 · 0 comments

Comments

@imanf94
Copy link

imanf94 commented Nov 14, 2023

Hi, for long-living WS connections, sometimes the connection gets lost by "Connection reset by peer". I'm not sure about the reason but I assume there is a possibility that the ping frame from the server is lost and the server didn't get the pong frame from the client for a while. If so, is there a way to send a ping frame from the client once in a while to make sure the connection stays alive?
Based on https://dev.binance.vision/t/how-to-send-ping-pong-to-binance-websocket-server/43 the server would respond to ping frames from the client.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant