diff options
author | robot-piglet <robot-piglet@yandex-team.com> | 2025-06-22 18:50:56 +0300 |
---|---|---|
committer | robot-piglet <robot-piglet@yandex-team.com> | 2025-06-22 19:04:42 +0300 |
commit | c7cbc6d480c5488ff6e921c709680fd2c1340a10 (patch) | |
tree | 10843f44b67c0fb5717ad555556064095f701d8c /contrib/python/Twisted/py3/twisted/web/websocket.py | |
parent | 26d391cdb94d2ce5efc8d0cc5cea7607dc363c0b (diff) | |
download | ydb-c7cbc6d480c5488ff6e921c709680fd2c1340a10.tar.gz |
Intermediate changes
commit_hash:28750b74281710ec1ab5bdc2403c8ab24bdd164b
Diffstat (limited to 'contrib/python/Twisted/py3/twisted/web/websocket.py')
-rw-r--r-- | contrib/python/Twisted/py3/twisted/web/websocket.py | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/contrib/python/Twisted/py3/twisted/web/websocket.py b/contrib/python/Twisted/py3/twisted/web/websocket.py new file mode 100644 index 00000000000..ab926d90538 --- /dev/null +++ b/contrib/python/Twisted/py3/twisted/web/websocket.py @@ -0,0 +1,40 @@ +# -*- test-case-name: twisted.web.test.test_websocket -*- +# Copyright (c) Twisted Matrix Laboratories. +# See LICENSE for details. + +""" +Websocket (rfc6455) client and server support. + +For websocket servers, place a L{WebSocketResource} into your Twisted Web +resource hierarchy. + +For websocket clients, create a new endpoint via L{WebSocketClientEndpoint.new} +with the WebSocket server URL and then, on the newly created endpoint, call +L{WebSocketClientEndpoint.connect}. + +Both client-side and server-side application code must conform to +L{WebSocketProtocol}. + +@note: To use this module, you must install Twisted's C{websocket} extra, i.e. + C{pip install twisted[websocket]}. +""" + +from ._websocket_impl import ( + ConnectionRejected, + WebSocketClientEndpoint, + WebSocketClientFactory, + WebSocketProtocol, + WebSocketResource, + WebSocketServerFactory, + WebSocketTransport, +) + +__all__ = [ + "ConnectionRejected", + "WebSocketClientEndpoint", + "WebSocketClientFactory", + "WebSocketProtocol", + "WebSocketResource", + "WebSocketServerFactory", + "WebSocketTransport", +] |