Initial commit

This commit is contained in:
Jage9
2026-02-20 08:16:43 -05:00
commit b246c9a7fd
53 changed files with 9538 additions and 0 deletions

17
server/app/client.py Normal file
View File

@@ -0,0 +1,17 @@
from __future__ import annotations
from dataclasses import dataclass
from websockets.asyncio.server import ServerConnection
@dataclass
class ClientConnection:
websocket: ServerConnection
id: str
nickname: str = "user..."
x: int = 20
y: int = 20
def summary(self) -> dict[str, str | int]:
return {"id": self.id, "nickname": self.nickname, "x": self.x, "y": self.y}