Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

changed send(room=) to send(to=) in examples #1665

Merged
merged 1 commit into from Aug 14, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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