From: xangelo Date: Wed, 14 Jun 2023 08:45:20 +0000 (-0400) Subject: fix: display login message to all players X-Git-Tag: v0.0.1~42 X-Git-Url: https://git.xangelo.ca/?a=commitdiff_plain;h=2bb30ea85e28f2913ab5f5011981afc4e5a96a41;p=risinglegends.git fix: display login message to all players --- diff --git a/src/server/api.ts b/src/server/api.ts index 120547e..361f1a8 100644 --- a/src/server/api.ts +++ b/src/server/api.ts @@ -105,7 +105,7 @@ io.on('connection', async socket => { setServerStats(); io.emit('chathistory', chatHistory); - socket.emit('login', broadcastMessage('server', `${player.username} just logged in`)); + socket.emit('chat', broadcastMessage('server', `${player.username} just logged in`)); socket.on('chat', (msg: string) => { if(msg.length > 0) {