diff --git a/server/index.ts b/server/index.ts index 795a9bf..e449c0f 100644 --- a/server/index.ts +++ b/server/index.ts @@ -3,7 +3,6 @@ type WebsocketData = { } type Message = - | { type: 'welcome', id: string } | { type: 'presence-information', others: number } | { type: 'ripple', position: [number, number], maxRadius: number } @@ -25,10 +24,6 @@ const _server = Deno.serve({ socket.addEventListener("open", () => { // register newly connected client and tell them how many other people are there console.log('Connection opened', clientId, clients) - socket.send(JSON.stringify({ - type: 'welcome', - id: clientId - })) const enterNotice = JSON.stringify({ type: 'presence-information', others: clients.size,