4 ms·
Do you provide a version of Firebase's onDisconnect? https://firebase.google.com/docs/reference/js/firebase.database.OnDisconnect https://firebase.google.com/do
by akanet 10y ago
Do you provide a version of Firebase's onDisconnect? https://firebase.google.com/docs/reference/js/firebase.database.OnDisconnect https://firebase.google.com/docs/reference/js/firebase.datab...
It's very hard to correctly manage distributed state without a guarantee similar to this.
- wolframhempel 10y agoYes, there are granular connection states and associated events. Messages are queued during connection loss. Please find more information here. https://deepstream.io/docs/client-js/client/#connectionstatechanged https://deepstream.io/docs/client-js/client/#connectionstate... https://deepstream.io/docs/common/constants/#connection-state https://deepstream.io/docs/common/constants/#connection-stat...
- akanet 10y agoSorry, I should have been clearer. I don't mean "does Deepstream tell the user when it's disconnected", I mean: Does the Deepstream client have a facility (like Firebase) to instruct the remote server to perform an action in the event the client disconnects in the future and the client is unable to get any further message to the server?
- wolframhempel 10y agoehm...this is not Horizon. But its a good question none the less. No, it does currently not have that facility, but it would certainly be a good addition
- akanet 10y agoHah, sorry, too many tabs open lately. I'll edit. Thanks for the answer.
- asadlionpk 10y agoSince this is not built-in, it may be possible to make with deepstream's onClientDisconnect. https://github.com/deepstreamIO/deepstream.io/issues/191 https://github.com/deepstreamIO/deepstream.io/issues/191 Also they seem to be working on 'presence'. https://github.com/deepstreamIO/deepstream.io/issues/118 https://github.com/deepstreamIO/deepstream.io/issues/118