Debian Codegraph @

docs/reference/asyncio/connection.rst

raw
1 :orphan:
2
3 Both sides (:mod:`asyncio`)
4 ===========================
5
6 .. automodule:: websockets.asyncio.connection
7
8 .. autoclass:: Connection
9
10 .. automethod:: __aiter__
11
12 .. automethod:: recv
13
14 .. automethod:: recv_streaming
15
16 .. automethod:: send
17
18 .. automethod:: close
19
20 .. automethod:: wait_closed
21
22 .. automethod:: ping
23
24 .. automethod:: pong
25
26 WebSocket connection objects also provide these attributes:
27
28 .. autoattribute:: id
29
30 .. autoattribute:: logger
31
32 .. autoproperty:: local_address
33
34 .. autoproperty:: remote_address
35
36 .. autoattribute:: latency
37
38 .. autoproperty:: state
39
40 The following attributes are available after the opening handshake,
41 once the WebSocket connection is open:
42
43 .. autoattribute:: request
44
45 .. autoattribute:: response
46
47 .. autoproperty:: 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