Skip to content
Discussion options

You must be logged in to vote

To answer my own question... I've realised that the SendEvent method will return a bool to indicate success and this will return false when attempting to write data after the client has disconnected. So as long as we have a regular heartbeat message we can detect disconnect on a failed write.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by jchristn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant