Skip to content

Commit

Permalink
changed send(room=) to send(to=) in examples (#1665)
Browse files Browse the repository at this point in the history
Co-authored-by: Dave McInnis <dave.mcinnis@verint.com>
  • Loading branch information
daavve and daaavvve committed Aug 14, 2021
1 parent d77de67 commit 086196a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/flask_socketio/__init__.py
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 086196a

Please sign in to comment.