use camelcase file names from now on...

This commit is contained in:
2024-08-21 20:55:58 +02:00
parent acc9eaae9e
commit 6b97e7d9cb
55 changed files with 396 additions and 116 deletions

9
src/events/login.ts Normal file
View File

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