Debian Codegraph @

docs/reference/index.rst

raw
1 API reference
2 =============
3
4 .. currentmodule:: websockets
5
6 Features
7 --------
8
9 Check which implementations support which features and known limitations.
10
11 .. toctree::
12 :titlesonly:
13
14 features
15
16 :mod:`asyncio`
17 --------------
18
19 It's ideal for servers that handle many clients concurrently.
20
21 This is the default implementation.
22
23 .. toctree::
24 :titlesonly:
25
26 asyncio/server
27 asyncio/client
28
29 :mod:`threading`
30 ----------------
31
32 This alternative implementation can be a good choice for clients.
33
34 .. toctree::
35 :titlesonly:
36
37 sync/server
38 sync/client
39
40 :mod:`trio`
41 ------------
42
43 This is another option for servers that handle many clients concurrently.
44
45 .. toctree::
46 :titlesonly:
47
48 trio/server
49 trio/client
50
51 `Sans-I/O`_
52 -----------
53
54 This layer is designed for integrating in third-party libraries, typically
55 application servers.
56
57 .. _Sans-I/O: https://sans-io.readthedocs.io/
58
59 .. toctree::
60 :titlesonly:
61
62 sansio/server
63 sansio/client
64
65 Legacy
66 ------
67
68 This is the historical implementation. It is deprecated. It will be removed by
69 2030.
70
71 .. toctree::
72 :titlesonly:
73
74 legacy/server
75 legacy/client
76
77 Extensions
78 ----------
79
80 The Per-Message Deflate extension is built-in. You may also define custom
81 extensions.
82
83 .. toctree::
84 :titlesonly:
85
86 extensions
87
88 Shared
89 ------
90
91 These low-level APIs are shared by all implementations.
92
93 .. toctree::
94 :titlesonly:
95
96 datastructures
97 exceptions
98 types
99 variables
100
101 API stability
102 -------------
103
104 Public APIs documented in this API reference are subject to the
105 :ref:`backwards-compatibility policy <backwards-compatibility policy>`.
106
107 Anything that isn't listed in the API reference is a private API. There's no
108 guarantees of behavior or backwards-compatibility for private APIs.
109
110 Convenience imports
111 -------------------
112
113 For convenience, some public APIs can be imported directly from the
114 ``websockets`` package.