(self, data: bytes)
| 172 | await self.send({"type": "websocket.send", "text": data}) |
| 173 | |
| 174 | async def send_bytes(self, data: bytes) -> None: |
| 175 | await self.send({"type": "websocket.send", "bytes": data}) |
| 176 | |
| 177 | async def send_json(self, data: Any, mode: str = "text") -> None: |
| 178 | if mode not in {"text", "binary"}: |