-
Notifications
You must be signed in to change notification settings - Fork 104
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
Cant resubscribe after reconnect #83
Comments
@masterada hello, many thanks for detailed description and steps to reproduce, will take a look very soon. |
FZambia
added a commit
that referenced
this issue
May 24, 2019
@masterada could you please check library version from dist folder in master branch which already contains fix from f421b6c - I believe it should fix an issue. If it works - will create new release. |
Thanks! Just released 2.1.6 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
If you subscribe and unsubscribe from a channel, and then a centrifuge reconnect happens, you can no longer subscribe to that channel.
Steps to reproduce
let sub = centrifuge.subscribe('test', handler)
sub.unsubscribe()
let sub = centrifuge.subscribe('test', handler)
Expexted:
Actual:
Other info
Might be related to: #46
After a bit of investigation, i found out that the subsription is stuck in _STATE_SUBSCRIBING:
let oldSub = centrifuge.subscribe('test', handler)
oldSub.unsubscribe()
console.log(oldSub._status) // prints out 1, expected 4
The text was updated successfully, but these errors were encountered: