From d2b49a5ee22c8b3cea6e678ed266feaeb8ee7a9a Mon Sep 17 00:00:00 2001 From: sasja Date: Mon, 27 Mar 2023 14:51:36 +0800 Subject: [PATCH] fix docstring typo: client/server mixup --- src/socketio/asyncio_client.py | 2 +- src/socketio/client.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/socketio/asyncio_client.py b/src/socketio/asyncio_client.py index feb470b..7d1d018 100644 --- a/src/socketio/asyncio_client.py +++ b/src/socketio/asyncio_client.py @@ -229,7 +229,7 @@ class AsyncClient(client.Client): packet.EVENT, namespace=namespace, data=[event] + data, id=id)) async def send(self, data, namespace=None, callback=None): - """Send a message to one or more connected clients. + """Send a message to the server. This function emits an event with the name ``'message'``. Use :func:`emit` to issue custom event names. diff --git a/src/socketio/client.py b/src/socketio/client.py index 2f8de8e..73bca4e 100644 --- a/src/socketio/client.py +++ b/src/socketio/client.py @@ -409,7 +409,7 @@ class Client(object): data=[event] + data, id=id)) def send(self, data, namespace=None, callback=None): - """Send a message to one or more connected clients. + """Send a message to the server. This function emits an event with the name ``'message'``. Use :func:`emit` to issue custom event names.