python-websocketd
Python module for creating a http server which uses WebSockets.

◆ page()

def websocketd.Httpd.page (   self,
  connection,
  path = None 
)

Serve a non-websocket page.

Overload this function for custom behavior. Call this function from the overloaded function if you want the default functionality in some cases.

Parameters
connectionThe connection that requests the page. Attributes of interest are connection.address, connection.method, connection.query, connection.headers and connection.body (which should be empty).
pathThe requested file.
Returns
True to keep the connection open after this request, False to close it.

Definition at line 1237 of file websocketd.py.

Here is the call graph for this function: