Send a Socket.IO packet to the server.
(self, pkt)
| 382 | return value() |
| 383 | |
| 384 | async def _send_packet(self, pkt): |
| 385 | """Send a Socket.IO packet to the server.""" |
| 386 | encoded_packet = pkt.encode() |
| 387 | if isinstance(encoded_packet, list): |
| 388 | for ep in encoded_packet: |
| 389 | await self.eio.send(ep) |
| 390 | else: |
| 391 | await self.eio.send(encoded_packet) |
| 392 | |
| 393 | async def _handle_connect(self, namespace, data): |
| 394 | namespace = namespace or '/' |