Browse Source

fix docstring typo: client/server mixup

pull/1163/head
sasja 2 years ago
parent
commit
d2b49a5ee2
  1. 2
      src/socketio/asyncio_client.py
  2. 2
      src/socketio/client.py

2
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.

2
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.

Loading…
Cancel
Save