feat: Security

This commit is contained in:
2026-06-05 18:34:01 +02:00
parent ee293d7daf
commit 45675192a5
134 changed files with 4128 additions and 446 deletions

View File

@@ -80,7 +80,13 @@ export function setupWebSocket(server: Server<typeof IncomingMessage, typeof Ser
const connectionId = uuidv4();
const now = Date.now();
connectedUsers.set(connectionId, { oderId: connectionId, ws, serverIds: new Set(), lastPong: now });
connectedUsers.set(connectionId, {
oderId: connectionId,
ws,
authenticated: false,
serverIds: new Set(),
lastPong: now
});
ws.on('pong', () => {
const user = connectedUsers.get(connectionId);