From 911cf520034ee17bcc9311e244e616848cfff095 Mon Sep 17 00:00:00 2001 From: Sasja Date: Mon, 27 Mar 2023 17:18:19 +0800 Subject: [PATCH] fix server/client mixup in client docstrings (#312) --- src/engineio/asyncio_client.py | 4 ++-- src/engineio/client.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/engineio/asyncio_client.py b/src/engineio/asyncio_client.py index 83436dae..cf7ae1a1 100644 --- a/src/engineio/asyncio_client.py +++ b/src/engineio/asyncio_client.py @@ -135,9 +135,9 @@ async def wait(self): await self.read_loop_task async def send(self, data): - """Send a message to a client. + """Send a message to the server. - :param data: The data to send to the client. Data can be of type + :param data: The data to send to the server. Data can be of type ``str``, ``bytes``, ``list`` or ``dict``. If a ``list`` or ``dict``, the data will be serialized as JSON. diff --git a/src/engineio/client.py b/src/engineio/client.py index 934a4b93..0584979c 100644 --- a/src/engineio/client.py +++ b/src/engineio/client.py @@ -201,9 +201,9 @@ def wait(self): self.read_loop_task.join() def send(self, data): - """Send a message to a client. + """Send a message to the server. - :param data: The data to send to the client. Data can be of type + :param data: The data to send to the server. Data can be of type ``str``, ``bytes``, ``list`` or ``dict``. If a ``list`` or ``dict``, the data will be serialized as JSON. """