diff --git a/docs/client_reference.rst b/docs/client_reference.rst index 4fefc76c5c0..1d17717521a 100644 --- a/docs/client_reference.rst +++ b/docs/client_reference.rst @@ -1437,7 +1437,7 @@ manually. :param int code: closing code - :param message: optional payload of *pong* message, + :param message: optional payload of *close* message, :class:`str` (converted to *UTF-8* encoded bytes) or :class:`bytes`. .. comethod:: receive() diff --git a/docs/web_reference.rst b/docs/web_reference.rst index c8fbedfa9c6..cbfef241603 100644 --- a/docs/web_reference.rst +++ b/docs/web_reference.rst @@ -1125,7 +1125,7 @@ WebSocketResponse :param int code: closing code - :param message: optional payload of *pong* message, + :param message: optional payload of *close* message, :class:`str` (converted to *UTF-8* encoded bytes) or :class:`bytes`.