deepstream.io-client-cpp icon indicating copy to clipboard operation
deepstream.io-client-cpp copied to clipboard

Event connection loss recovering

Open yasserf opened this issue 8 years ago • 1 comments

https://github.com/deepstreamIO/deepstream.io-client-specs/blob/master/events/events-connection.feature

yasserf avatar Jan 20 '17 09:01 yasserf

Listen to the connection status and if the connection is lost and reestablished they automatically resubscribe (you can see the java util here https://github.com/deepstreamIO/deepstream.io-client-java/blob/master/src/main/java/io/deepstream/UtilResubscribeNotifier.java and the javascript one here https://github.com/deepstreamIO/deepstream.io-client-js/blob/master/src/utils/resubscribe-notifier.js

The callback would be as follows: https://github.com/deepstreamIO/deepstream.io-client-js/blob/master/src/event/event-handler.js#L222

Spec tests:

https://github.com/deepstreamIO/deepstream.io-client-specs/blob/master/events/events-connection.feature

yasserf avatar Feb 16 '17 10:02 yasserf