diff --git a/README.rst b/README.rst index 1b35d7c..dfb3fe6 100644 --- a/README.rst +++ b/README.rst @@ -158,6 +158,17 @@ WebSocket sample:: ws.connect("https://echo.websocket.org") +Sub Protocols. +---------------------------------------- + +The server needs to support sub protocols, please set the subprotcol like this. + + +Subprotocol sample:: + + ws = websocket.create_connection("ws://exapmle.com/websocket", subprotocols=["binary", "base64"]) + + wsdump.py ============