turnpike icon indicating copy to clipboard operation
turnpike copied to clipboard

How can a client know if the webosocket has disconnected?

Open subiol opened this issue 7 years ago • 1 comments

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?

subiol avatar Jun 16 '17 11:06 subiol

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.

beatgammit avatar Jan 21 '18 17:01 beatgammit