bokeh.server.session — Anaconda Enterprise 4.4 documentation

Anaconda Enterprise: Documentation

# bokeh.server.session

Provides the `ServerSession` class.

class `bokeh.server.session.` `ServerSession`(session_id, document, io_loop=None)

  Hosts an application “instance” (an instantiated Document) for one or more connections.

  classmethod `patch`(message, connection)

    Handle a PATCH-DOC, return a Future with work to be scheduled.

  classmethod `pull`(message, connection)

    Handle a PULL-DOC, return a Future with work to be scheduled.

  classmethod `push`(message, connection)

    Handle a PUSH-DOC, return a Future with work to be scheduled.

  `request_expiration`()

    Used in test suite for now. Forces immediate expiration if no connections.

  `subscribe`(connection)

    This should only be called by ServerConnection.subscribe_session or our book-keeping will be broken

  `unsubscribe`(connection)

    This should only be called by ServerConnection.unsubscribe_session or our book-keeping will be broken

`bokeh.server.session.` `current_time`()

  Return the time in milliseconds since the epoch as a floating point number.