Welcome message is not needed
This commit is contained in:
parent
bc9ef895ad
commit
d00a636a68
1 changed files with 0 additions and 5 deletions
|
|
@ -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(<Message>{
|
||||
type: 'welcome',
|
||||
id: clientId
|
||||
}))
|
||||
const enterNotice = JSON.stringify(<Message>{
|
||||
type: 'presence-information',
|
||||
others: clients.size,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue