Skip to content

Commit 598dd7e

Browse files
authored
fix docstring typo: client/server mixup (#1163)
* fix docstring typo: client/server mixup * fix docstring typo: client/server mixup
1 parent 9d02247 commit 598dd7e

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/socketio/asyncio_client.py

Lines changed: 3 additions & 3 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
@@ -229,7 +229,7 @@ async def emit(self, event, data=None, namespace=None, callback=None):
229229
packet.EVENT, namespace=namespace, data=[event] + data, id=id))
230230

231231
async def send(self, data, namespace=None, callback=None):
232-
"""Send a message to one or more connected clients.
232+
"""Send a message to the server.
233233
234234
This function emits an event with the name ``'message'``. Use
235235
:func:`emit` to issue custom event names.
@@ -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: 3 additions & 3 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
@@ -409,7 +409,7 @@ def emit(self, event, data=None, namespace=None, callback=None):
409409
data=[event] + data, id=id))
410410

411411
def send(self, data, namespace=None, callback=None):
412-
"""Send a message to one or more connected clients.
412+
"""Send a message to the server.
413413
414414
This function emits an event with the name ``'message'``. Use
415415
:func:`emit` to issue custom event names.
@@ -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)