Skip to content

Commit 59ba0ad

Browse files
committed
fix docstring typo: client/server mixup
1 parent d2b49a5 commit 59ba0ad

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/socketio/asyncio_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ async def wait(self):
183183
break
184184

185185
async def emit(self, event, data=None, namespace=None, callback=None):
186-
"""Emit a custom event to one or more connected clients.
186+
"""Emit a custom event to the server.
187187
188188
:param event: The event name. It can be any string. The event names
189189
``'connect'``, ``'message'`` and ``'disconnect'`` are
@@ -252,7 +252,7 @@ async def send(self, data, namespace=None, callback=None):
252252
callback=callback)
253253

254254
async def call(self, event, data=None, namespace=None, timeout=60):
255-
"""Emit a custom event to a client and wait for the response.
255+
"""Emit a custom event to the server and wait for the response.
256256
257257
This method issues an emit with a callback and waits for the callback
258258
to be invoked before returning. If the callback isn't invoked before

src/socketio/client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ def wait(self):
365365
break
366366

367367
def emit(self, event, data=None, namespace=None, callback=None):
368-
"""Emit a custom event to one or more connected clients.
368+
"""Emit a custom event to the server.
369369
370370
:param event: The event name. It can be any string. The event names
371371
``'connect'``, ``'message'`` and ``'disconnect'`` are
@@ -430,7 +430,7 @@ def send(self, data, namespace=None, callback=None):
430430
callback=callback)
431431

432432
def call(self, event, data=None, namespace=None, timeout=60):
433-
"""Emit a custom event to a client and wait for the response.
433+
"""Emit a custom event to the server and wait for the response.
434434
435435
This method issues an emit with a callback and waits for the callback
436436
to be invoked before returning. If the callback isn't invoked before

0 commit comments

Comments
 (0)