-
Notifications
You must be signed in to change notification settings - Fork 401
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
Listener callback is invoked multiple times when message is published and when calling subscribe multiple times #230
Comments
I'm having the similar issue where the handler is invoked multiple times. For one message, the handler is firing 4 to 5 times depending on the number of times the |
I have attached 2 videos, one on 4.33.1 the other using 4.34.0. Code sandbox also attached. This is a simple counter to visually see how many times the handler is invoked. Notice I only call addListener once, and the only change is calling subscribe. Codesandbox: https://codesandbox.io/s/dazzling-cannon-y71vi 4.33.1Screen.Recording.2021-11-30.at.10.14.07.AM.mov4.34.0Screen.Recording.2021-11-30.at.10.14.45.AM.mov |
@raipubnub Have you guys noticed this? |
Thanks for the detailed report @puopg. We are looking at this and will provide an update once we finish the analysis. |
This was a result of a change in superagent that affected chaining the |
Cool thanks! |
Edit: Changed the title to be more representative of the bug at hand.
Seeing some interesting behavior differences after upgrading to version 4.34.0.
Services currently enabled on my key:
Context here is a simple chat application. On message publish, a client receives that message via subscribing to the channel. However, a special situation here is we are subscribed to a channel group.
Affected version: 4.34.0
Unaffected version: 4.33.1
Actual outcome:
Multiple invocations to the handler.
Expected outcome:
A single invocation to the handler.
The text was updated successfully, but these errors were encountered: