From 00a8de06d0cbc2051412729ad050669aef2085f2 Mon Sep 17 00:00:00 2001 From: hsvlz Date: Sun, 16 Jul 2017 16:28:57 +0100 Subject: [PATCH] expose ignore_queue param in the emit method (#505) --- flask_socketio/__init__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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):