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.