turnpike
turnpike copied to clipboard
How can a client know if the webosocket has disconnected?
I can see the router has AddSessionOpenCallback and AddSessionCloseCallback, but I have not found anything similar for the client. Is there a way for a client to know if the underlying websocket has disconnected for whatever reason?
If it closes normally, you'll get a message saying as much, but if it closes abnormally (socket died), I don't think there's anything currently in the source to hook into that.