From c554be39f947f3f9f7effe80cb8d8bb747383eab Mon Sep 17 00:00:00 2001 From: Dave McInnis Date: Fri, 13 Aug 2021 21:20:24 -0700 Subject: [PATCH] changed send(room=) to send(to=) in examples --- src/flask_socketio/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/flask_socketio/__init__.py b/src/flask_socketio/__init__.py index ef7b9e61..419f37c5 100644 --- a/src/flask_socketio/__init__.py +++ b/src/flask_socketio/__init__.py @@ -910,7 +910,7 @@ def on_join(data): username = session['username'] room = data['room'] join_room(room) - send(username + ' has entered the room.', room=room) + send(username + ' has entered the room.', to=room) :param room: The name of the room to join. :param sid: The session id of the client. If not provided, the client is @@ -935,7 +935,7 @@ def on_leave(data): username = session['username'] room = data['room'] leave_room(room) - send(username + ' has left the room.', room=room) + send(username + ' has left the room.', to=room) :param room: The name of the room to leave. :param sid: The session id of the client. If not provided, the client is