Send a Socket.IO packet to the server.
(self, pkt)
| 361 | return value() |
| 362 | |
| 363 | def _send_packet(self, pkt): |
| 364 | """Send a Socket.IO packet to the server.""" |
| 365 | encoded_packet = pkt.encode() |
| 366 | if isinstance(encoded_packet, list): |
| 367 | for ep in encoded_packet: |
| 368 | self.eio.send(ep) |
| 369 | else: |
| 370 | self.eio.send(encoded_packet) |
| 371 | |
| 372 | def _handle_connect(self, namespace, data): |
| 373 | namespace = namespace or '/' |