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

class WebSocketClientConnectionWrapper(socket)[source]

Used for compat across Tornado versions and to add write_lock

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

Close the websocket.


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.