Skip to content

Latest commit

 

History

History
5 lines (3 loc) · 485 Bytes

README.md

File metadata and controls

5 lines (3 loc) · 485 Bytes

This handler is normally acting like a standard BaseHTTPRequestHandler, but is capable of handling HTTP upgrade to WebSocket (RFC 6455) requests. To switch the connection to WebSocket connection, one has to call ws_handshake() method in its own do_GET() implementation, most likely responding to a specific URL.

Received messages should be handled by overloading ws_text_received() and/or ws_binary_received() methods.

Send messages with ws_text_send() and ws_binary_send() methods.