This docs on this page refers to a PREVIOUS VERSION. For the latest stable release, go to https://docs.bokeh.org/

Archived docs for versions <= 1.0.4 have had to be modified from their original published configuration, and may be missing some features (e.g. source listing)

All users are encourage to update to version 1.1 or later, as soon as they are able.

bokeh.client.websocket — Bokeh 1.0.2 documentation

bokeh.client.websocket

Provide a low-level wrapper for Tornado Websockets that adds locking and smooths some compatibility issues.

class WebSocketClientConnectionWrapper(socket)[source]

Used for compatibility across Tornado versions and to add write_lock

close(code=None, reason=None)[source]

Close the websocket.

read_message(callback=None)[source]

Read a message from websocket and execute a callback.

write_message(message, binary=False, locked=True)[source]

Write a message to the websocket after obtaining the appropriate Bokeh Document lock.