From 20a908e8a2ac99bdbaf9de580619654d754dad2b Mon Sep 17 00:00:00 2001 From: April Hall Date: Sat, 11 Jan 2025 13:49:10 -0500 Subject: [PATCH] style: Fix broken grammar --- prodServer.ts | 6 +++--- src/lib/websocketConfig.ts | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/prodServer.ts b/prodServer.ts index ec10499..a361f0e 100644 --- a/prodServer.ts +++ b/prodServer.ts @@ -10,9 +10,9 @@ const server = createServer(app); const io = new Server(server); io.on('connection', async (socket) => { - // Runs on client connect + // Runs on client connection console.log(`[ws:kit] client connected (${socket.id})`); - // Runs on message receive + // Runs on message received socket.on('message', async (msg) => { // If message not empty if (msg.content !== '') { @@ -33,7 +33,7 @@ app.use((req, res, next) => { if (req.path.startsWith('/socket.io/')) { next(); } else { - handler(req, res); + handler(req, res, next); } }); diff --git a/src/lib/websocketConfig.ts b/src/lib/websocketConfig.ts index 26f2ad8..2f1db88 100644 --- a/src/lib/websocketConfig.ts +++ b/src/lib/websocketConfig.ts @@ -11,9 +11,9 @@ export function startupSocketIOServer(httpServer: HttpServer | null) { io = new SocketIOServer(httpServer); io.on('connection', async (socket) => { - // Runs on client connect + // Runs on client connection console.log(`[ws:kit] client connected (${socket.id})`); - // Runs on message receive + // Runs on message received socket.on('message', async (msg) => { // If message not empty if (msg.content !== '') {