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
Should getDataStream.subscribe continue to fire after re-connection? #78
Comments
Can anyone provide a hint? |
Do you finded the solution of this? Looks like this code in source
will internally finalize the observable. |
No, I don't have a solution. |
I'm fixed this problem by adding stream for error messages. You can watch my solution in fork. |
I create a $websocket instance with the reconnect param:
{"reconnectIfNotNormalClose": true}
and the stream nicely reconnects on failures.I have a problem with incoming messages:
ws.getDataStream().subscribe
correctly fires on incoming messages until the websocket reconnects, after which it stops firing.Am I missing a step so
ws.getDataStream().subscribe
continues firing after an automatic reconnection?here is the code (comments welcome, I am new to js):
I also tried moving the
subscribe
into the stream'sonOpen
, but it behaves the same as above (fires only for the initial connection):The text was updated successfully, but these errors were encountered: