coldown fix

This commit is contained in:
2025-08-21 16:05:29 +02:00
parent 49923adcd2
commit 68eeaa063d
13 changed files with 1287 additions and 133 deletions

View File

@@ -83,4 +83,9 @@ export const wsMessageSchema = z.union([
}),
]);
export type WSMessage = z.infer<typeof wsMessageSchema>;
export type WSMessage =
| { type: "pixel_placed"; data: { x: number; y: number; color: string; userId: string; username: string; timestamp: string } }
| { type: "user_count"; data: { count: number } }
| { type: "cooldown_update"; data: { userId: string; remainingSeconds: number } }
| { type: "pixel_deleted"; data: { pixelId: string } }
| { type: "canvas_cleared"; data: {} };