Coverage for /pythoncovmergedfiles/medio/medio/src/aiohttp/aiohttp/http_websocket.py: 100%
Shortcuts on this page
r m x toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
Shortcuts on this page
r m x toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
1"""WebSocket protocol versions 13 and 8."""
3from ._websocket.helpers import WS_KEY, ws_ext_gen, ws_ext_parse
4from ._websocket.models import (
5 WS_CLOSED_MESSAGE,
6 WS_CLOSING_MESSAGE,
7 WebSocketError,
8 WSCloseCode,
9 WSHandshakeError,
10 WSMessage,
11 WSMessageBinary,
12 WSMessageClose,
13 WSMessageClosed,
14 WSMessageClosing,
15 WSMessageContinuation,
16 WSMessageError,
17 WSMessagePing,
18 WSMessagePong,
19 WSMessageText,
20 WSMsgType,
21)
22from ._websocket.reader import WebSocketReader
23from ._websocket.writer import WebSocketWriter
25# Messages that the WebSocketResponse.receive needs to handle internally
26_INTERNAL_RECEIVE_TYPES = frozenset(
27 (WSMsgType.CLOSE, WSMsgType.CLOSING, WSMsgType.PING, WSMsgType.PONG)
28)
31__all__ = (
32 "WS_CLOSED_MESSAGE",
33 "WS_CLOSING_MESSAGE",
34 "WS_KEY",
35 "WebSocketReader",
36 "WebSocketWriter",
37 "WSMessage",
38 "WebSocketError",
39 "WSMsgType",
40 "WSCloseCode",
41 "ws_ext_gen",
42 "ws_ext_parse",
43 "WSMessageError",
44 "WSHandshakeError",
45 "WSMessageClose",
46 "WSMessageClosed",
47 "WSMessageClosing",
48 "WSMessagePong",
49 "WSMessageBinary",
50 "WSMessageText",
51 "WSMessagePing",
52 "WSMessageContinuation",
53)