deepstream.io-client-cpp
deepstream.io-client-cpp copied to clipboard
Presence connection loss recovering
https://github.com/deepstreamIO/deepstream.io-client-specs/blob/master/presence/presence-connection.feature
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/presence/presence-connection.feature