-
Is there anyway to know if the client is still connected or if the client websocket is still open? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
The connection is considered open until close event fires. This is determined by the idleTimeout. Keep sockets alive by having the client send phony messages (messages with no real content) from time to time. |
Beta Was this translation helpful? Give feedback.
-
@alexhultman Conversely, as soon as a close event fires, is the connection already closed (ws it not waiting for an acknowledgement from the client)? Thank you! |
Beta Was this translation helpful? Give feedback.
-
Yes if you get close event it is closed, that's in the docs |
Beta Was this translation helpful? Give feedback.
Yes if you get close event it is closed, that's in the docs