Mass replace parameter order (socket,io)>(io,socket), worked on queueing system

This commit is contained in:
2024-09-21 23:54:52 +02:00
parent 10dc9df8a9
commit 9d6de8a1a9
36 changed files with 206 additions and 121 deletions

View File

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