(self, client_id: str)
| 64 | logger.warning(f"Failed to send welcome message to WebSocket client {client_id}: {e}") |
| 65 | |
| 66 | def disconnect(self, client_id: str): |
| 67 | if client_id in self.active_connections: |
| 68 | del self.active_connections[client_id] |
| 69 | logger = logging.getLogger("AIStudioProxyServer") |
| 70 | logger.info(f"WebSocket logging client disconnected: {client_id}") |
| 71 | |
| 72 | async def broadcast(self, message: str): |
| 73 | if not self.active_connections: |