python-websocketd
Python module for creating a http server which uses WebSockets.
|
Main class implementing the websocket protocol. More...
Public Member Functions | |
def | send (self, data, opcode=1) |
Send a Websocket frame to the remote end of the connection. More... | |
def | ping (self, data=b'') |
Send a ping, return if a pong was received since last ping. More... | |
def | close (self) |
Send close request, and close the connection. More... | |
def | opened (self) |
This function does nothing by default, but can be overridden by the application. More... | |
def | closed (self) |
This function does nothing by default, but can be overridden by the application. More... | |
Public Attributes | |
recv | |
mask | |
websockets | |
websocket_buffer | |
websocket_fragments | |
opcode | |
socket | |
remote | |
data | |
Main class implementing the websocket protocol.
Definition at line 108 of file websocketd.py.