Module Expr Str ImportFrom alias alias Import alias Assign NameStore Call AttributeLoad NameLoad attr NameLoad ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias ImportFrom alias alias alias ImportFrom alias ImportFrom alias ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body If CompareIs NameLoad NameLoad body Raise Call NameLoad Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body FunctionDef arguments args defaults body If CompareIs AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Raise Call NameLoad Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad If CompareIs NameLoad NameLoad body Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Raise Call AttributeLoad NameLoad attr NameLoad decorator_list If NameLoad body With Yield Call AttributeLoad AttributeLoad NameLoad attr attr body Expr Call NameLoad orelse Expr Call NameLoad decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Expr Yield Call AttributeLoad NameLoad attr decorator_list AttributeLoad NameLoad attr decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Expr Yield Call AttributeLoad NameLoad attr decorator_list AttributeLoad NameLoad attr decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Expr Yield Call AttributeLoad NameLoad attr decorator_list AttributeLoad NameLoad attr decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Raise Call AttributeLoad NameLoad attr NameLoad decorator_list AttributeLoad NameLoad attr decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Yield Call AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Expr Yield Call AttributeLoad NameLoad attr orelse If BoolOpAnd CompareIn Str AttributeLoad NameLoad attr CompareEq SubscriptLoad AttributeLoad NameLoad attr Index Str AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr NameLoad Expr Yield Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr orelse Expr Yield Call AttributeLoad NameLoad attr decorator_list AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Expr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad Str Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Assign NameStore Call NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad Str Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body FunctionDef arguments args defaults body Return BoolOpOr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults Str body If CompareIsNot AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num NameLoad decorator_list FunctionDef arguments args NameParam defaults body If Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr orelse FunctionDef arguments args defaults body Return Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If CompareIs AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr Str NameLoad orelse TryExcept body Assign NameStore Yield Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr keyword Str Raise Call AttributeLoad NameLoad attr NameLoad decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str ListLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str Assign AttributeStore NameLoad attr NameLoad Assign NameStore ListLoad FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr NameLoad NameLoad FunctionDef arguments args defaults body Return BoolOpOr CompareGt Call NameLoad NameLoad Num CompareNotEq AttributeLoad NameLoad attr NameLoad decorator_list Expr Call AttributeLoad NameLoad attr NameLoad FunctionDef arguments args defaults body Return BoolOpOr CompareNotEq AttributeLoad NameLoad attr NameLoad CompareIsNot AttributeLoad NameLoad attr NameLoad decorator_list Expr Call AttributeLoad NameLoad attr NameLoad Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareIs NameLoad NameLoad body Raise Call NameLoad Str orelse If CompareEq SubscriptLoad AttributeLoad NameLoad attr Index Str Str body Raise Call NameLoad BinOpAdd Str SubscriptLoad AttributeLoad NameLoad attr Index Str orelse Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareIs NameLoad NameLoad body Raise Call NameLoad Str orelse If CompareEq SubscriptLoad AttributeLoad NameLoad attr Index Str Str body Raise Call NameLoad BinOpAdd Str SubscriptLoad AttributeLoad NameLoad attr Index Str orelse Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareIs NameLoad NameLoad body Raise Call NameLoad Str Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str If CompareIs AttributeLoad NameLoad attr NameLoad body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad TryExcept body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body If BoolOpAnd CompareIsNot AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Raise Call AttributeLoad NameLoad attr NameLoad orelse Expr Call AttributeLoad NameLoad attr BinOpAdd Str AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Expr Yield Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr BinOpAdd Str AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr NameLoad Expr Yield Call AttributeLoad NameLoad attr decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Expr Yield Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Assign NameStore BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call NameLoad NameLoad TryExcept body Assign NameStore Yield Call NameLoad NameLoad Assign AttributeStore NameLoad attr Call NameLoad NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr Str NameLoad If CompareIs AttributeLoad NameLoad attr NameLoad body Expr Yield Call AttributeLoad NameLoad attr orelse Expr Yield Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Assign NameStore Yield Call AttributeLoad NameLoad attr If BoolOpAnd NameLoad CompareEq AttributeLoad NameLoad attr Str body Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Yield Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr orelse If CompareIs NameLoad NameLoad body Expr Yield Call AttributeLoad NameLoad attr orelse Raise Call NameLoad BinOpMod Str NameLoad decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Assign NameStore Yield Call AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Expr Yield Call AttributeLoad NameLoad attr orelse If CompareEq AttributeLoad NameLoad attr Str body Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad orelse Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Yield Call AttributeLoad NameLoad attr decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body While NameLoad body If CompareIs AttributeLoad NameLoad attr NameLoad body Raise Call AttributeLoad NameLoad attr NameLoad Assign NameStore NameLoad TryExcept body Assign NameStore Yield Call AttributeLoad AttributeLoad NameLoad attr attr handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr Str NameLoad If CompareIs NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Str Raise Call AttributeLoad NameLoad attr NameLoad TryExcept body Assign NameStore Yield Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If CompareIsNot NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Raise Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type TupleLoad NameLoad NameLoad NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr Str NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr keyword Str decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body If AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list decorator_list
N/A N/A  Implements a very low level facility for communicating with a Bokeh
Server. Users will always want to use ``bokeh.client.session`` instead.

 __future__ absolute_import print_function N/A logging N/A log N/A N/A logging getLogger __name__ tornado gen locks tornado.httpclient HTTPRequest tornado.ioloop IOLoop tornado.websocket websocket_connect WebSocketError tornado.concurrent Future bokeh.server.exceptions MessageError ProtocolError ValidationError bokeh.server.protocol.receiver Receiver bokeh.server.protocol Protocol _WebSocketClientConnectionWrapper N/A object N/A N/A  Used for compat across Tornado versions and to add write_lock __init__ N/A N/A self socket N/A N/A N/A N/A socket None N/A N/A N/A ValueError socket must not be None N/A N/A self _socket socket N/A N/A self write_lock N/A N/A locks Lock N/A write_message N/A N/A self message binary locked N/A False True N/A write_message_unlocked N/A N/A N/A N/A N/A N/A N/A N/A self _socket protocol None N/A N/A N/A WebSocketError Connection to the server has been closed N/A future N/A N/A N/A self _socket write_message message binary N/A N/A future None N/A N/A future N/A Future N/A N/A N/A future set_result None N/A N/A N/A gen Return future N/A N/A locked N/A N/A N/A N/A N/A N/A self write_lock acquire N/A N/A N/A write_message_unlocked N/A N/A N/A write_message_unlocked N/A N/A gen coroutine close N/A N/A self code reason N/A None None N/A N/A N/A N/A N/A self _socket close code reason N/A read_message N/A N/A self callback N/A None N/A N/A N/A N/A N/A self _socket read_message callback N/A N/A ClientConnection N/A object N/A N/A  A Bokeh-private class used to implement ClientSession; use ClientSession to connect to the server. NOT_YET_CONNECTED N/A object N/A run N/A N/A self connection N/A N/A N/A N/A N/A N/A connection _connect_async N/A N/A gen coroutine N/A CONNECTED_BEFORE_ACK N/A object N/A run N/A N/A self connection N/A N/A N/A N/A N/A N/A connection _wait_for_ack N/A N/A gen coroutine N/A CONNECTED_AFTER_ACK N/A object N/A run N/A N/A self connection N/A N/A N/A N/A N/A N/A connection _handle_messages N/A N/A gen coroutine N/A DISCONNECTED N/A object N/A run N/A N/A self connection N/A N/A N/A N/A N/A gen Return None N/A N/A gen coroutine N/A WAITING_FOR_REPLY N/A object N/A __init__ N/A N/A self reqid N/A N/A N/A N/A self _reqid reqid N/A N/A self _reply None N/A reply N/A N/A self N/A N/A N/A N/A self _reply N/A property run N/A N/A self connection N/A N/A N/A message N/A N/A N/A connection _pop_message N/A N/A message None N/A N/A N/A N/A N/A connection _transition_to_disconnected N/A N/A N/A N/A reqid N/A message header N/A N/A N/A message header N/A reqid N/A self _reqid N/A N/A N/A self _reply message N/A N/A N/A N/A connection _transition N/A N/A connection CONNECTED_AFTER_ACK N/A N/A N/A N/A N/A connection _next N/A N/A gen coroutine N/A __init__ N/A N/A self session websocket_url io_loop N/A None N/A N/A 
          Opens a websocket connection to the server.
         N/A N/A self _url websocket_url N/A N/A self _session session N/A N/A self _protocol N/A Protocol 1.0 N/A N/A self _receiver N/A Receiver N/A self _protocol N/A N/A self _socket None N/A N/A self _state N/A N/A self NOT_YET_CONNECTED N/A N/A io_loop None N/A N/A io_loop N/A IOLoop N/A N/A self _loop io_loop N/A N/A self _until_predicate None N/A N/A self _protocol N/A Protocol 1.0 N/A N/A self _server_info None N/A url N/A N/A self N/A N/A N/A N/A self _url N/A property io_loop N/A N/A self N/A N/A N/A N/A self _loop N/A property connected N/A N/A self N/A N/A N/A True if we've connected the websocket and exchanged initial handshake messages. N/A N/A isinstance N/A self _state N/A self CONNECTED_AFTER_ACK N/A property connect N/A N/A self N/A N/A connected_or_closed N/A N/A N/A N/A N/A N/A N/A isinstance N/A self _state N/A self CONNECTED_AFTER_ACK N/A isinstance N/A self _state N/A self DISCONNECTED N/A N/A N/A N/A self _loop_until connected_or_closed N/A close N/A N/A self why N/A closed N/A N/A N/A N/A self _socket None N/A N/A N/A N/A N/A self _socket close 1000 why N/A loop_until_closed N/A N/A self N/A N/A N/A N/A isinstance N/A self _state N/A self NOT_YET_CONNECTED N/A N/A N/A N/A self _tell_session_about_disconnect N/A N/A self _state N/A N/A self DISCONNECTED N/A closed N/A N/A N/A N/A N/A N/A isinstance N/A self _state N/A self DISCONNECTED N/A N/A N/A N/A self _loop_until closed N/A send_message N/A N/A self message N/A N/A N/A N/A N/A self _socket None N/A N/A N/A N/A log info We're disconnected, so not sending message %r message N/A N/A N/A N/A sent N/A N/A N/A message send N/A self _socket N/A N/A N/A log debug Sent %r [%d bytes] message sent N/A N/A N/A WebSocketError N/A e N/A N/A N/A N/A log debug Error sending message to server: %r e N/A N/A N/A self close why received error while sending N/A N/A N/A gen Return None N/A N/A gen coroutine _send_patch_document N/A N/A self session_id event N/A N/A N/A msg N/A N/A N/A self _protocol create PATCH-DOC N/A event N/A N/A N/A self send_message msg N/A _send_message_wait_for_reply N/A N/A self message N/A N/A N/A waiter N/A N/A self WAITING_FOR_REPLY N/A N/A message header N/A msgid N/A N/A self _state waiter N/A send_result N/A message_sent N/A N/A future N/A N/A N/A N/A N/A send_result append future N/A N/A N/A N/A N/A self _loop add_future N/A N/A self send_message message message_sent have_send_result_or_disconnected N/A N/A N/A N/A N/A N/A N/A N/A len send_result 0 N/A N/A self _state waiter N/A N/A N/A N/A self _loop_until have_send_result_or_disconnected have_reply_or_disconnected N/A N/A N/A N/A N/A N/A N/A N/A self _state waiter N/A N/A waiter reply None N/A N/A N/A N/A self _loop_until have_reply_or_disconnected N/A N/A waiter reply N/A push_doc N/A N/A self document N/A N/A N/A  Push a document to the server, overwriting any existing server-side doc.

        Args:
            document : bokeh.document.Document
              the Document to push to the server
        Returns:
             The server reply
         N/A msg N/A N/A N/A self _protocol create PUSH-DOC document N/A reply N/A N/A self _send_message_wait_for_reply msg N/A N/A reply None N/A N/A N/A RuntimeError Connection to server was lost N/A N/A N/A N/A N/A reply header N/A msgtype ERROR N/A N/A N/A RuntimeError N/A Failed to push document:  N/A N/A reply content N/A text N/A N/A reply N/A pull_doc N/A N/A self document N/A N/A N/A  Pull a document from the server, overwriting the passed-in document
        Args:
            document : bokeh.document.Document
              The document to overwrite with server content.
        Returns:
            None
         N/A msg N/A N/A N/A self _protocol create PULL-DOC-REQ N/A reply N/A N/A self _send_message_wait_for_reply msg N/A N/A reply None N/A N/A N/A RuntimeError Connection to server was lost N/A N/A N/A N/A N/A reply header N/A msgtype ERROR N/A N/A N/A RuntimeError N/A Failed to pull document:  N/A N/A reply content N/A text N/A N/A N/A N/A reply push_to_document document N/A _send_request_server_info N/A N/A self N/A N/A N/A msg N/A N/A N/A self _protocol create SERVER-INFO-REQ N/A reply N/A N/A self _send_message_wait_for_reply msg N/A N/A reply None N/A N/A N/A RuntimeError Did not get a reply to server info request before disconnect N/A N/A reply content N/A request_server_info N/A N/A self N/A N/A N/A 
        Ask for information about the server.

        Returns:
            A dictionary of server attributes.
         N/A N/A N/A self _server_info None N/A N/A N/A self _server_info N/A N/A self _send_request_server_info N/A N/A self _server_info N/A force_roundtrip N/A N/A self N/A N/A N/A 
        Force a round-trip request/reply to the server, sometimes needed to avoid race conditions.

        Outside of test suites, this method probably hurts performance and shouldn't be needed.

        Returns:
           None
         N/A N/A N/A self _send_request_server_info N/A _loop_until N/A N/A self predicate N/A N/A N/A N/A self _until_predicate predicate N/A N/A N/A N/A N/A N/A self _loop add_callback N/A self _next N/A N/A N/A N/A self _loop start N/A N/A N/A KeyboardInterrupt N/A N/A N/A N/A self close user interruption N/A _next N/A N/A self N/A N/A N/A N/A N/A N/A self _until_predicate None N/A N/A self _until_predicate N/A N/A N/A N/A log debug Stopping client loop in state %s due to True from %s N/A N/A N/A self _state __class__ __name__ N/A N/A self _until_predicate __name__ N/A N/A self _until_predicate None N/A N/A N/A N/A self _loop stop N/A N/A N/A gen Return None N/A N/A N/A N/A log debug N/A Running state  N/A N/A N/A self _state __class__ __name__ N/A N/A N/A N/A N/A self _state run self N/A N/A gen coroutine _transition N/A N/A self new_state N/A N/A N/A N/A N/A log debug N/A transitioning to state  N/A N/A new_state __class__ __name__ N/A N/A self _state new_state N/A N/A N/A N/A self _next N/A N/A gen coroutine _transition_to_disconnected N/A N/A self N/A N/A N/A N/A N/A self _tell_session_about_disconnect N/A N/A N/A N/A self _transition N/A N/A self DISCONNECTED N/A N/A gen coroutine _connect_async N/A N/A self N/A N/A N/A versioned_url N/A %s?bokeh-protocol-version=1.0&bokeh-session-id=%s N/A N/A self _url N/A N/A self _session id N/A request N/A HTTPRequest versioned_url N/A N/A N/A socket N/A N/A websocket_connect request N/A N/A self _socket N/A _WebSocketClientConnectionWrapper socket N/A N/A N/A Exception N/A e N/A N/A N/A N/A log info Failed to connect to server: %r e N/A N/A N/A self _socket None N/A N/A N/A N/A N/A self _transition_to_disconnected N/A N/A N/A N/A N/A self _transition N/A N/A self CONNECTED_BEFORE_ACK N/A N/A gen coroutine _wait_for_ack N/A N/A self N/A N/A N/A message N/A N/A N/A self _pop_message N/A N/A message N/A N/A message msgtype ACK N/A N/A N/A N/A log debug Received %r message N/A N/A N/A N/A self _transition N/A N/A self CONNECTED_AFTER_ACK N/A N/A N/A message None N/A N/A N/A N/A N/A self _transition_to_disconnected N/A N/A N/A ProtocolError N/A Received %r instead of ACK message N/A N/A gen coroutine _handle_messages N/A N/A self N/A N/A N/A message N/A N/A N/A self _pop_message N/A N/A message None N/A N/A N/A N/A N/A self _transition_to_disconnected N/A N/A N/A N/A message msgtype PATCH-DOC N/A N/A N/A N/A log debug Got PATCH-DOC, applying to session N/A N/A N/A N/A self _session _handle_patch message N/A N/A N/A N/A log debug Ignoring %r message N/A N/A N/A N/A self _next N/A N/A gen coroutine _pop_message N/A N/A self N/A N/A N/A True N/A N/A N/A N/A self _socket None N/A N/A N/A N/A gen Return None N/A fragment None N/A N/A N/A fragment N/A N/A N/A N/A self _socket read_message N/A N/A N/A Exception N/A e N/A N/A N/A N/A log debug Error reading from socket %r e N/A N/A fragment None N/A N/A N/A N/A log info Connection closed by server N/A N/A N/A gen Return None N/A N/A N/A message N/A N/A N/A N/A self _receiver consume fragment N/A N/A message None N/A N/A N/A N/A log debug N/A Received message %r message N/A N/A N/A gen Return message N/A N/A N/A N/A MessageError ProtocolError ValidationError N/A e N/A N/A N/A N/A log error %r e exc_info True N/A N/A N/A self close why error parsing message from server N/A N/A gen coroutine _tell_session_about_disconnect N/A N/A self N/A N/A N/A N/A self _session N/A N/A N/A N/A N/A self _session _notify_disconnected N/A N/A