You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I notice that skip_sid is ignored (client would receive messages although I explicitly stated them not to, as pet the documentation)
The emit function in init.py explicitly emits that argument and many other possible arguments
To Reproduce
Steps to reproduce the behavior:
Set up a server using flask_socketio
Create a simple event that emits back a message, with skip_sid=request.sid
A client that send that former event, see client receiving the event even though their SID is in skip_sid
Expected behavior
Client who is specified in skip_sid should not get the message
Logs
Additional context
I created a workaround which I believe should also serve as the proper content of the emit function itself:
def emit_(*args, **kwargs):
if 'namespace' not in kwargs:
kwargs['namespace'] = flask.request.namespace
if 'room' not in kwargs:
kwargs['room'] = flask.request.sid
socketio.emit(*args, **kwargs)
The text was updated successfully, but these errors were encountered:
Describe the bug
I notice that skip_sid is ignored (client would receive messages although I explicitly stated them not to, as pet the documentation)
The
emit
function in init.py explicitly emits that argument and many other possible argumentsTo Reproduce
Steps to reproduce the behavior:
Expected behavior
Client who is specified in skip_sid should not get the message
Logs
Additional context
I created a workaround which I believe should also serve as the proper content of the emit function itself:
The text was updated successfully, but these errors were encountered: