-
Notifications
You must be signed in to change notification settings - Fork 28
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
Reconnect after connection lost #60
Comments
Hello guys, |
@creat-or looking through autobhanjs's docs and I can't find where it says that returning false will automatically reconnect. |
@davidwdan Yeah, it's hard to find. http://autobahn.ws/js/reference.html#connection-callbacks
Funny enough it's unfortunately implemented in the exact opposite way. I tested it on another project (with autobahn.js without angular-wamp). Also at that time I found this solution in a comment, but I cannot find it right now. |
@davidwdan hello again, did you already have time to look into this? |
Hey @davidwdan I'm sorry... reconnect works as expected, I had an issue with my configuration. 🙈 |
To automatically reconnect after the connection is lost in autobahnjs, you have to return
false
in the onclose method, like:Unfortunately, I think there is no way to do this right now in angular-wamp, but I need it in my application. Is there another way, or could we implement it into the library?
The text was updated successfully, but these errors were encountered: