angular-pusher icon indicating copy to clipboard operation
angular-pusher copied to clipboard

Get connection state and reconnect

Open mehl321 opened this issue 10 years ago • 3 comments

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.

mehl321 avatar Mar 03 '14 15:03 mehl321

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

doowb avatar Mar 05 '14 12:03 doowb

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.

mehl321 avatar Mar 05 '14 12:03 mehl321

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

doowb avatar Apr 23 '15 16:04 doowb