question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Subscribe to disconnect event

See original GitHub issue

Do you want to request a feature or report a bug? Bug, maybe? 😃

What is the current behavior? Can’t subscribe to the socket disconnect event.

What is the expected behavior? I have events bound to all socket states (connecting, connected etc.) but also want to handle disconnected in the same manner to trigger a side effect.

Which versions of Pusher, and which browsers / OS are affected by this issue? Did this work in previous versions of Pusher? If so, which? Pusher version 4.3.0 with react-native.

Cheers!

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

6reactions
ewalcommented, Feb 11, 2019

It’s very app specific so I don’t think it would help anyone if I’d tell 😃

0reactions
mrluboscommented, Feb 8, 2019

No problem @ewal! What was your solution?

Read more comments on GitHub >

github_iconTop Results From Across the Web

How does the disconnect event works in socket.io?
The disconnect event is a built-in socket.io event that tells you when a client disconnects. The socket.io client JavaScript uses the ...
Read more >
Amazon Connect contact events
To subscribe to Amazon Connect contact events, go to Amazon EventBridge and create a new rule by selecting Amazon Connect as the service...
Read more >
Diffusion JavaScript API 5.9.24 Class: Session
When calling Session#subscribe, a Subscription object is returned to bind event listeners to. This object may be closed via Subscription#close, which will ...
Read more >
Conditions under which a connection is disconnected / subscription ...
Then subscribing to a stream and the following events are logged: connection disconnected. connection reconnecting. subscription dropped, reason=connection ...
Read more >
Class: Client - STOMP.js Documentation
(void) disconnect(disconnectCallback, headers = {}) Disconnect from the STOMP broker ... unsubscribe() directly on the object returned by client.subscribe() ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found