feat: socketio event

This commit is contained in:
Methapon2001 2023-12-07 17:25:56 +07:00
parent 0a1265b78c
commit 25752dac19
No known key found for this signature in database
GPG key ID: 849924FEF46BD132
9 changed files with 200 additions and 8 deletions

View file

@ -0,0 +1,11 @@
import { Server } from "socket.io";
let io: Server | null = null;
export function setInstance(server: Server) {
io = server;
}
export function getInstance() {
return io;
}