From 8caebfd524d77d118243878c4bd9d396c420e0a3 Mon Sep 17 00:00:00 2001 From: wangjiancn <37948697+wangjiancn@users.noreply.github.com> Date: Tue, 24 Mar 2020 22:43:27 +0800 Subject: [PATCH] Fix docstring (#449) --- socketio/server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/socketio/server.py b/socketio/server.py index 61433e4..7874804 100644 --- a/socketio/server.py +++ b/socketio/server.py @@ -172,7 +172,7 @@ class Server(object): def message_handler(sid, msg): print('Received message: ', msg) eio.send(sid, 'response') - socket_io.on('message', namespace='/chat', message_handler) + socket_io.on('message', namespace='/chat', handler=message_handler) The handler function receives the ``sid`` (session ID) for the client as first argument. The ``'connect'`` event handler receives the