fix: TypeError (No Overload matches this call)

This commit is contained in:
April Hall 2025-02-06 11:40:50 -05:00
parent 9c8d0b6cb0
commit edfd65335c
No known key found for this signature in database
GPG Key ID: A49AC35CB186266C

View File

@ -10,6 +10,12 @@ let io: SocketIOServer | undefined;
export function startupSocketIOServer(httpServer: HttpServer | null) {
if (io) return;
console.log('\x1b[35m[ws:kit]\x1b[0m setup');
if (!httpServer) {
console.error('Error: httpServer is null. Cannot start Socket.IO server.');
return;
}
io = new SocketIOServer(httpServer);
io.on('connection', async (socket) => {