(self)
Handle the Engine.IO disconnection event.
Handle the Engine.IO disconnection event.
Handle the Engine . IO disconnection event .
def _handle_eio_disconnect(self):
        """Handle the Engine.IO disconnection event."""
        self.logger.info('Engine.IO connection dropped')
        if self.connected:
            for n in self.namespaces:
                self._trigger_event('disconnect', namespace=n)
            self.namespaces = {}
            self.connected = False
        self.callbacks = {}
        self._binary_packet = None
        self.sid = None
        if self.eio.state == 'connected' and self.reconnection:
            self._reconnect_task = self.start_background_task(
                self._handle_reconnect)
def _handle_eio_disconnect ( self ) : self . logger . info ( 'Engine.IO connection dropped' ) if self . connected : for n in self . namespaces : self . _trigger_event ( 'disconnect' , namespace = n ) self . namespaces = { } self . connected = False self . callbacks = { } self . _binary_packet = None self . sid = None if self . eio . state == 'connected' and self . reconnection : self . _reconnect_task = self . start_background_task ( self . _handle_reconnect )