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