1
0
forked from noxious/server

my 13th reason

This commit is contained in:
2024-05-28 21:54:34 +02:00
parent 4157ff5b5c
commit 80ec470fd4
30 changed files with 283 additions and 70 deletions

View File

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