Skip to content

Commit 8b37152

Browse files
Merge pull request #32 from winek/patch-1
Correct sio.emit() call in readme
2 parents 3a1ef8a + a1ca2c4 commit 8b37152

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ client:
6464
@sio.on('chat message', namespace='/chat')
6565
def message(sid, data):
6666
print("message ", data)
67-
sio.emit(sid, 'reply')
67+
sio.emit('reply', room=sid)
6868

6969
@sio.on('disconnect', namespace='/chat')
7070
def disconnect(sid):

0 commit comments

Comments
 (0)