Answer the question
In order to leave comments, you need to log in
How to set up periodic sending of WebSocket ping frames to reset the timeout and check if the connection is working?
Good morning everyone.
I ran into the problem of breaking the websocket connection, as it turned out, due to proxying of Angie, I did it according to this manual nginx.org/ru/docs/http/websocket.html, where at the very end it says:
By default, the connection will be closed if no data has been transmitted from the proxied server for 60 seconds. This timeout can be increased using the proxy_read_timeout directive. In addition, the proxied server can be configured to periodically send WebSocket ping frames to reset the timeout and check if the connection is working.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question