(self, data: bytes)
| 166 | await self.send({"type": "websocket.send", "text": data}) |
| 167 | |
| 168 | async def send_bytes(self, data: bytes) -> None: |
| 169 | await self.send({"type": "websocket.send", "bytes": data}) |
| 170 | |
| 171 | async def send_json(self, data: Any, mode: str = "text") -> None: |
| 172 | if mode not in {"text", "binary"}: |