Multiple listeners for the same event #2133
okovpashko
started this conversation in
General
Replies: 1 comment 2 replies
-
This is expected, multiple event handlers for an event are not supported. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm writing my first app with flask-socketio and need to handle the
connect
event in multiple parts of my app. For example? register all users' connections and add a connection to the rooms.When I have multiple
@socketio.on('connect')
decorators for multiple functions only the last one is called when a new connection is opened.Is this an expected behavior? Are there any reasons for not supporting multiple event listeners?
Beta Was this translation helpful? Give feedback.
All reactions