File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ Documented :exc: `asyncio.TimeoutError ` for ``WebSocketResponse.receive() ``
2+ and related methods -- by :user: `veeceey `.
Original file line number Diff line number Diff line change @@ -1306,6 +1306,8 @@ and :ref:`aiohttp-web-signals` handlers::
13061306
13071307 :raise RuntimeError: if connection is not started
13081308
1309+ :raise asyncio.TimeoutError: if timeout expires before receiving a message
1310+
13091311 .. method :: receive_str(*, timeout=None)
13101312 :async:
13111313
@@ -1324,6 +1326,8 @@ and :ref:`aiohttp-web-signals` handlers::
13241326
13251327 :raise aiohttp.WSMessageTypeError: if message is not :const: `~aiohttp.WSMsgType.TEXT `.
13261328
1329+ :raise asyncio.TimeoutError: if timeout expires before receiving a message
1330+
13271331 .. method :: receive_bytes(*, timeout=None)
13281332 :async:
13291333
@@ -1343,6 +1347,8 @@ and :ref:`aiohttp-web-signals` handlers::
13431347
13441348 :raise aiohttp.WSMessageTypeError: if message is not :const: `~aiohttp.WSMsgType.BINARY `.
13451349
1350+ :raise asyncio.TimeoutError: if timeout expires before receiving a message
1351+
13461352 .. method :: receive_json(*, loads=json.loads, timeout=None)
13471353 :async:
13481354
@@ -1366,6 +1372,7 @@ and :ref:`aiohttp-web-signals` handlers::
13661372
13671373 :raise TypeError: if message is :const: `~aiohttp.WSMsgType.BINARY `.
13681374 :raise ValueError: if message is not valid JSON.
1375+ :raise asyncio.TimeoutError: if timeout expires before receiving a message
13691376
13701377
13711378.. seealso :: :ref:`WebSockets handling<aiohttp-web-websockets>`
You can’t perform that action at this time.
0 commit comments