(self)
Disconnect from the server.

        Note: this method is a coroutine.
Disconnect from the server.
Disconnect from the server .
async def disconnect(self):
        """Disconnect from the server.

        Note: this method is a coroutine.
        """
        # here we just request the disconnection
        # later in _handle_eio_disconnect we invoke the disconnect handler
        for n in self.namespaces:
            await self._send_packet(self.packet_class(packet.DISCONNECT,
                                    namespace=n))
        await self.eio.disconnect(abort=True)
async def disconnect ( self ) : # here we just request the disconnection # later in _handle_eio_disconnect we invoke the disconnect handler for n in self . namespaces : await self . _send_packet ( self . packet_class ( packet . DISCONNECT , namespace = n ) ) await self . eio . disconnect ( abort = True )