diff --git a/docs/client_reference.rst b/docs/client_reference.rst index 172042ed7cf..bb7e69f2dea 100644 --- a/docs/client_reference.rst +++ b/docs/client_reference.rst @@ -1322,9 +1322,8 @@ manually. .. coroutinemethod:: receive_json(*, loads=json.loads) - A :ref:`coroutine` that calls :meth:`receive`, asserts the - message type is :const:`~aiohttp.websocket.MSG_TEXT`, and loads the JSON - string to a Python dict. + A :ref:`coroutine` that calls :meth:`receive_str` and loads + the JSON string to a Python dict. :param callable loads: any :term:`callable` that accepts :class:`str` and returns :class:`dict` diff --git a/docs/web_reference.rst b/docs/web_reference.rst index 8b9fa6da275..c6eea277f12 100644 --- a/docs/web_reference.rst +++ b/docs/web_reference.rst @@ -899,9 +899,8 @@ WebSocketResponse .. coroutinemethod:: receive_json(*, loads=json.loads) - A :ref:`coroutine` that calls :meth:`receive`, asserts the - message type is :const:`~aiohttp.websocket.MSG_TEXT`, and loads the JSON - string to a Python dict. + A :ref:`coroutine` that calls :meth:`receive_str` and loads the + JSON string to a Python dict. :param callable loads: any :term:`callable` that accepts :class:`str` and returns :class:`dict`