Fix WebSocket handler for websockets 15.x compatibility

Remove path parameter from handle_client() method to fix compatibility
with websockets library version 15.x which no longer passes the path
argument to connection handlers.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Vladyslav Doloman
2025-10-04 17:06:12 +03:00
parent 84a58038f7
commit b28d78575f

View File

@@ -28,13 +28,11 @@ class WebSocketHandler:
async def handle_client( async def handle_client(
self, self,
websocket: WebSocketServerProtocol, websocket: WebSocketServerProtocol,
path: str,
) -> None: ) -> None:
"""Handle a WebSocket client connection. """Handle a WebSocket client connection.
Args: Args:
websocket: WebSocket connection websocket: WebSocket connection
path: Request path (unused)
""" """
# Generate player ID (will be replaced when JOIN message received) # Generate player ID (will be replaced when JOIN message received)
import uuid import uuid