feat: improve reconnect, add ESLint configuration for common and socket

This commit is contained in:
Ralex committed 2025-10-19 00:37:26 +02:00
1 parent 8bdb8f47ef
commit 96bff164c0
36 files changed
+1571 -677

No files matched your search

+8
View File
@@ -0,0 +1,8 @@
import z from "zod"
export const usernameValidator = z
.string()
.min(4, "Username cannot be less than 4 characters")
.max(20, "Username cannot exceed 20 characters")
export const inviteCodeValidator = z.string().length(6, "Invalid invite code")