Skip to content

Commit

Permalink
expose ignore_queue param in the emit method (#505)
Browse files Browse the repository at this point in the history
  • Loading branch information
hsvlz authored and miguelgrinberg committed Jul 16, 2017
1 parent a05acd2 commit 00a8de0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion flask_socketio/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 00a8de0

Please sign in to comment.