Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can a client know if the webosocket has disconnected? #137

Open
subiol opened this issue Jun 16, 2017 · 1 comment
Open

How can a client know if the webosocket has disconnected? #137

subiol opened this issue Jun 16, 2017 · 1 comment

Comments

@subiol
Copy link

subiol commented Jun 16, 2017

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?

@beatgammit
Copy link
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants