(self)
Wait until the connection with the server ends.

        Client applications can use this function to block the main thread
        during the life of the connection.
Wait until the connection with the server ends.
Wait until the connection with the server ends .
def wait(self):
        """Wait until the connection with the server ends.

        Client applications can use this function to block the main thread
        during the life of the connection.
        """
        while True:
            self.eio.wait()
            self.sleep(1)  # give the reconnect task time to start up
            if not self._reconnect_task:
                break
            self._reconnect_task.join()
            if self.eio.state != 'connected':
                break
def wait ( self ) : while True : self . eio . wait ( ) self . sleep ( 1 ) # give the reconnect task time to start up if not self . _reconnect_task : break self . _reconnect_task . join ( ) if self . eio . state != 'connected' : break