(self, pkt)
Send a Socket.IO packet to the server.
Send a Socket.IO packet to the server.
Send a Socket . IO packet to the server .
async def _send_packet(self, pkt):
        """Send a Socket.IO packet to the server."""
        encoded_packet = pkt.encode()
        if isinstance(encoded_packet, list):
            for ep in encoded_packet:
                await self.eio.send(ep)
        else:
            await self.eio.send(encoded_packet)
async def _send_packet ( self , pkt ) : encoded_packet = pkt . encode ( ) if isinstance ( encoded_packet , list ) : for ep in encoded_packet : await self . eio . send ( ep ) else : await self . eio . send ( encoded_packet )