implemented logs

This commit is contained in:
biersoeckli
2024-11-02 11:10:43 +00:00
parent 51628314fc
commit a45b854c32
6 changed files with 122 additions and 96 deletions
+2 -5
View File
@@ -1,8 +1,7 @@
import { createServer } from 'http'
import { parse } from 'url'
import next from 'next'
import webSocketHandler from './socket-io'
import { Server } from 'socket.io'
import socketIoServer from './socket-io.server'
// Source: https://nextjs.org/docs/app/building-your-application/configuring/custom-server
@@ -18,9 +17,7 @@ app.prepare().then(() => {
handle(req, res, parsedUrl)
});
webSocketHandler.initializeSocketIo(server);
//const io = new Server(server);
socketIoServer.initialize(server);
server.listen(port)