-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Automatic reconnection #79
Comments
Any updates on this? Any pointers to where to implement the fix? |
Like I said for your other comment: Sorry, I haven't yet put any thought in how I'd implement this. It's not an urgent feature for my project because Crossbar is hosted on the same device as my C++ program. |
Session state change callbacks (#78) are now implemented in 637589d. This should allow the user to implement their own reconnection logic. I'm not sure yet what would be a sensible policy for an automatic reconnection feature provided by CppWAMP. Things to consider:
Another thing to consider is that The current design with I'm therefore placing this feature on the back burner considering that the user now has a means to react to session disconnection/failure events. I'll take a look at it again if I get the chance to refactor the current design to favor runtime polymorphism over compile-time (i.e. template) polymorphism. I'll take this opportunity to make a note to myself to keep an eye on the proposed Session Resumption WAMP protocol feature. |
Provide automatic reconnection facilities. If a connection is dropped unexpectedly, CppWAMP would re-establish the session using the list of connector objects. It should also re-register RPCs and re-subscribe to events.
The text was updated successfully, but these errors were encountered: