Provide a set of objects to represent different stages of a connection to a Bokeh server.
CONNECTED_AFTER_ACK
The ClientConnection connected to a Bokeh server, and has received an ACK from it.
ClientConnection
CONNECTED_BEFORE_ACK
The ClientConnection connected to a Bokeh server, but has not yet received an ACK from it.
DISCONNECTED
The ClientConnection was connected to a Bokeh server, but is now disconnected.
__init__
Constructs a DISCONNECT-State with given reason (ErrorReason enum), error id and additional information provided as string.
ErrorReason
error_code
Holds the error code, if any. None otherwise.
error_detail
Holds the error message, if any. Empty string otherwise.
error_reason
The reason for the error encoded as an enumeration value.
An enumeration.
NOT_YET_CONNECTED
The ClientConnection is not yet connected.
WAITING_FOR_REPLY
The ClientConnection has sent a message to the Bokeh Server which should generate a paired reply, and is waiting for the reply.
reply
The reply from the server. (None until the reply arrives)
None
reqid
The request ID of the originating message.