diff options
author | Aldo Cortesi <aldo@corte.si> | 2017-12-15 09:49:24 +1300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-15 09:49:24 +1300 |
commit | dfcf62ff2b5a6c53ad027ea721431450169ab3ea (patch) | |
tree | 7c7c26809906f29ba95fed0c4436c9e20e868673 /docs/protocols/websocket.rst | |
parent | d9848a8bc1b6a3ea7741c657133f09e969052e02 (diff) | |
parent | f5fafbfcb56bbc3fb7cca7ed32dd7b3b41c39e83 (diff) | |
download | mitmproxy-dfcf62ff2b5a6c53ad027ea721431450169ab3ea.tar.gz mitmproxy-dfcf62ff2b5a6c53ad027ea721431450169ab3ea.tar.bz2 mitmproxy-dfcf62ff2b5a6c53ad027ea721431450169ab3ea.zip |
Merge pull request #2545 from mitmproxy/wsproto
Replace our WebSocket stack with wsproto
Diffstat (limited to 'docs/protocols/websocket.rst')
-rw-r--r-- | docs/protocols/websocket.rst | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/docs/protocols/websocket.rst b/docs/protocols/websocket.rst new file mode 100644 index 00000000..8a7e807f --- /dev/null +++ b/docs/protocols/websocket.rst @@ -0,0 +1,22 @@ +.. _websocket_protocol: + +WebSocket +========= + +.. seealso:: + + - `RFC6455: The WebSocket Protocol <http://tools.ietf.org/html/rfc6455>`_ + - `RFC7692: Compression Extensions for WebSocket <http://tools.ietf.org/html/rfc7692>`_ + +WebSocket support in mitmproxy is based on the amazing work by the python-hyper +community with the `wsproto <https://github.com/python-hyper/wsproto>`_ +project. It fully encapsulates WebSocket frames/messages/connections and +provides an easy-to-use event-based API. + +mitmproxy fully supports the compression extension for WebSocket messages, +provided by wsproto. + +If an endpoint sends a PING to mitmproxy, a PONG will be sent back immediately +(with the same payload if present). To keep the other connection alive, a new +PING (without a payload) is sent to the other endpoint. Unsolicited PONG's are +not forwarded. All PING's and PONG's are logged (with payload if present). |