Use const's instead of lets (values will never change, better practice), bug fix for character creation error

This commit is contained in:
2024-06-02 20:56:19 +02:00
parent 4216dc567a
commit 8a169781a6
8 changed files with 16 additions and 18 deletions

View File

@ -1,6 +1,6 @@
import { Socket, Server } from "socket.io";
export default function Disconnect(socket: Socket, io: Server) {
export default function (socket: Socket, io: Server) {
socket.on('disconnect', (data: any) => {
console.log(`---User ${socket.id} has disconnected.`);
});