add sub protocol example.
This commit is contained in:
Hiroki Ohtani
2014-12-22 10:21:34 +09:00
parent fc9325da88
commit 1b37c10c1c

View File

@@ -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
============