bokeh.client.websocket — Anaconda Enterprise 4.4 documentation

Anaconda Enterprise: Documentation

# bokeh.client.websocket

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

class `bokeh.client.websocket.` `WebSocketClientConnectionWrapper`(socket)

  Used for compat across Tornado versions and to add write_lock

  `close`(code=None, reason=None)

    Close the websocket.

  `read_message`(callback=None)

    Read a message from websocket and execute a callback.

  `write_message`(*args, **kwargs)

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