diff --git a/flask_socketio/__init__.py b/flask_socketio/__init__.py index b2fc89d3..04530f27 100644 --- a/flask_socketio/__init__.py +++ b/flask_socketio/__init__.py @@ -669,10 +669,12 @@ def handle_my_custom_event(json): if room is None and not broadcast: room = flask.request.sid include_self = kwargs.get('include_self', True) + ignore_queue = kwargs.get('ignore_queue', False) socketio = flask.current_app.extensions['socketio'] return socketio.emit(event, *args, namespace=namespace, room=room, - include_self=include_self, callback=callback) + include_self=include_self, callback=callback, + ignore_queue=ignore_queue) def send(message, **kwargs):