(self)
Continuously wait for and handle instructions from the client.

        This waiting blocks Vim, but that does not matter since nobody is looking at
        it. Blocking also prevents CPU resources from being wasted on redrawing.

        :raises EOFError: when the connection is closed.
Continuously wait for and handle instructions from the client.
Continuously wait for and handle instructions from the client .
def message_loop(self):
        """
        Continuously wait for and handle instructions from the client.

        This waiting blocks Vim, but that does not matter since nobody is looking at
        it. Blocking also prevents CPU resources from being wasted on redrawing.

        :raises EOFError: when the connection is closed.
        """
        while True:
            try:
                data = self.client_connection.recv()

                # If there is still data waiting, then multiple requests were sent,
                # so we skip pathfinding and move on to the next one
                if not self.client_connection.poll():
                    self.do_action(data)
            except:
                # Send any unexpected exceptions back to the client
                # to be displayed for debugging purposes
                self.client_connection.send(("ERROR", traceback.format_exc()))
def message_loop ( self ) : while True : try : data = self . client_connection . recv ( ) # If there is still data waiting, then multiple requests were sent, # so we skip pathfinding and move on to the next one if not self . client_connection . poll ( ) : self . do_action ( data ) except : # Send any unexpected exceptions back to the client # to be displayed for debugging purposes self . client_connection . send ( ( "ERROR" , traceback . format_exc ( ) ) )