(self, eio_sid, namespace)
Handle a client disconnect.
Handle a client disconnect.
Handle a client disconnect .
async def _handle_disconnect(self, eio_sid, namespace):
        """Handle a client disconnect."""
        namespace = namespace or '/'
        sid = self.manager.sid_from_eio_sid(eio_sid, namespace)
        if not self.manager.is_connected(sid, namespace):  # pragma: no cover
            return
        self.manager.pre_disconnect(sid, namespace=namespace)
        await self._trigger_event('disconnect', namespace, sid)
        self.manager.disconnect(sid, namespace)
async def _handle_disconnect ( self , eio_sid , namespace ) : namespace = namespace or '/' sid = self . manager . sid_from_eio_sid ( eio_sid , namespace ) if not self . manager . is_connected ( sid , namespace ) : # pragma: no cover return self . manager . pre_disconnect ( sid , namespace = namespace ) await self . _trigger_event ( 'disconnect' , namespace , sid ) self . manager . disconnect ( sid , namespace )