diff --git a/server.ts b/server.ts index d63d704..09f47f0 100644 --- a/server.ts +++ b/server.ts @@ -137,6 +137,10 @@ const server = Bun.serve({ } switch (msg.type) { + case "ping": { + ws.send(JSON.stringify({ type: "pong", timestamp: msg.timestamp })); + break; + } case "create_room": { const username = (msg.username || "").trim(); if (!username) {