Debian Codegraph @

testing/web-platform/tests/tools/third_party/websockets/docs/reference/asyncio/common.rst

raw
1 :orphan:
2
3 Both sides (:mod:`asyncio`)
4 ===========================
5
6 .. automodule:: websockets.legacy.protocol
7
8 .. autoclass:: WebSocketCommonProtocol(*, logger=None, ping_interval=20, ping_timeout=20, close_timeout=10, max_size=2 ** 20, max_queue=2 ** 5, read_limit=2 ** 16, write_limit=2 ** 16)
9
10 .. automethod:: recv
11
12 .. automethod:: send
13
14 .. automethod:: close
15
16 .. automethod:: wait_closed
17
18 .. automethod:: ping
19
20 .. automethod:: pong
21
22 WebSocket connection objects also provide these attributes:
23
24 .. autoattribute:: id
25
26 .. autoattribute:: logger
27
28 .. autoproperty:: local_address
29
30 .. autoproperty:: remote_address
31
32 .. autoproperty:: open
33
34 .. autoproperty:: closed
35
36 .. autoattribute:: latency
37
38 The following attributes are available after the opening handshake,
39 once the WebSocket connection is open:
40
41 .. autoattribute:: path
42
43 .. autoattribute:: request_headers
44
45 .. autoattribute:: response_headers
46
47 .. autoattribute:: subprotocol
48
49 The following attributes are available after the closing handshake,
50 once the WebSocket connection is closed:
51
52 .. autoproperty:: close_code
53
54 .. autoproperty:: close_reason