bokeh.server.views¶
autoload_js_handler¶
Provide a request handler that returns a page displaying a document.
doc_handler¶
Provide a request handler that returns a page displaying a document.
autoload_metadata_handler¶
Provide a request handler that returns a json with metadata information from the application
root_handler¶
Provide a Request handler that lists the application (if more than one) or (if only one) redirects to the route of that applications.
session_handler¶
Abstract request handler that handles bokeh-session-id
static_handler¶
Provide a request handler that returns a page displaying a document.
ws¶
Provide a web socket handler for the Bokeh Server application.
-
class
WSHandler
(tornado_app, *args, **kw)[source]¶ Implements a custom Tornado WebSocketHandler for the Bokeh Server.
-
on_message
(fragment)[source]¶ Process an individual wire protocol fragment.
The websocket RFC specifies opcodes for distinguishing text frames from binary frames. Tornado passes us either a text or binary string depending on that opcode, we have to look at the type of the fragment to see what we got.Parameters: fragment (unicode or bytes) – wire fragment to process
-