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

Get connection state and reconnect #7

Open
mehl321 opened this issue Mar 3, 2014 · 3 comments
Open

Get connection state and reconnect #7

mehl321 opened this issue Mar 3, 2014 · 3 comments

Comments

@mehl321
Copy link

mehl321 commented Mar 3, 2014

I sometimes get this message when my connection is closed: WebSocket connection to '[pusher url...]' failed: WebSocket is closed before the connection is established..

It would be nice to have a method called isActive() or isConnected() to know about it and be able to reconnect.

@doowb
Copy link
Owner

doowb commented Mar 5, 2014

Should this be exposed on the Service or just implemented inside the service to attempt auto reconnects?

@mehl321
Copy link
Author

mehl321 commented Mar 5, 2014

In my app, I would like to track any disconnection and perform some logic if it happens. That why exposing a method would be ideal for me.

@doowb
Copy link
Owner

doowb commented Apr 23, 2015

@mehl321 sorry for the long delay... does this commit help?

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