python-websocketd
Python module for creating a http server which uses WebSockets.
Public Member Functions | Public Attributes | List of all members
websocketd.Websocket Class Reference

Main class implementing the websocket protocol. More...

Inheritance diagram for websocketd.Websocket:
Inheritance graph
[legend]

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
 

Detailed Description

Main class implementing the websocket protocol.

Definition at line 108 of file websocketd.py.


The documentation for this class was generated from the following file: