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.