GM event fixes

This commit is contained in:
2024-09-21 00:42:08 +02:00
parent 0a629bf80f
commit 6b2433f814
20 changed files with 105 additions and 72 deletions

View File

@ -3,7 +3,7 @@ import { TSocket } from '../utilities/types'
export default function (socket: TSocket, io: Server) {
socket.on('login', () => {
// return user data
if (!socket.user) return
socket.emit('logged_in', { user: socket.user })
})
}