(self, sid, namespace=None, ignore_queue=False)
Disconnect a client.

        :param sid: Session ID of the client.
        :param namespace: The Socket.IO namespace to disconnect. If this
                          argument is omitted the default namespace is used.
        :param ignore_queue: Only used when a message queue is configured. If
                             set to ``True``, the disconnect is processed
                             locally, without broadcasting on the queue. It is
                             recommended to always leave this parameter with
                             its default value of ``False``.

        Note: this method is a coroutine.
Disconnect a client.
Disconnect a client .
async def disconnect(self, sid, namespace=None, ignore_queue=False):
        """Disconnect a client.

        :param sid: Session ID of the client.
        :param namespace: The Socket.IO namespace to disconnect. If this
                          argument is omitted the default namespace is used.
        :param ignore_queue: Only used when a message queue is configured. If
                             set to ``True``, the disconnect is processed
                             locally, without broadcasting on the queue. It is
                             recommended to always leave this parameter with
                             its default value of ``False``.

        Note: this method is a coroutine.
        """
        namespace = namespace or '/'
        if ignore_queue:
            delete_it = self.manager.is_connected(sid, namespace)
        else:
            delete_it = await self.manager.can_disconnect(sid, namespace)
        if delete_it:
            self.logger.info('Disconnecting %s [%s]', sid, namespace)
            eio_sid = self.manager.pre_disconnect(sid, namespace=namespace)
            await self._send_packet(eio_sid, self.packet_class(
                packet.DISCONNECT, namespace=namespace))
            await self._trigger_event('disconnect', namespace, sid)
            self.manager.disconnect(sid, namespace=namespace)
async def disconnect ( self , sid , namespace = None , ignore_queue = False ) : namespace = namespace or '/' if ignore_queue : delete_it = self . manager . is_connected ( sid , namespace ) else : delete_it = await self . manager . can_disconnect ( sid , namespace ) if delete_it : self . logger . info ( 'Disconnecting %s [%s]' , sid , namespace ) eio_sid = self . manager . pre_disconnect ( sid , namespace = namespace ) await self . _send_packet ( eio_sid , self . packet_class ( packet . DISCONNECT , namespace = namespace ) ) await self . _trigger_event ( 'disconnect' , namespace , sid ) self . manager . disconnect ( sid , namespace = namespace )