Send a Socket.IO packet to a client.
(self, eio_sid, pkt)
| 503 | server_stats_interval=server_stats_interval) |
| 504 | |
| 505 | def _send_packet(self, eio_sid, pkt): |
| 506 | """Send a Socket.IO packet to a client.""" |
| 507 | encoded_packet = pkt.encode() |
| 508 | if isinstance(encoded_packet, list): |
| 509 | for ep in encoded_packet: |
| 510 | self.eio.send(eio_sid, ep) |
| 511 | else: |
| 512 | self.eio.send(eio_sid, encoded_packet) |
| 513 | |
| 514 | def _send_eio_packet(self, eio_sid, eio_pkt): |
| 515 | """Send a raw Engine.IO packet to a client.""" |
no test coverage detected