From 343cd709fb78b7ee6519d59f6b1b1b95ace4c529 Mon Sep 17 00:00:00 2001 From: Mihaela Dumitru Date: Tue, 1 Aug 2023 15:44:05 +0300 Subject: [PATCH] increase buffer size --- src/index.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/index.ts b/src/index.ts index a48e3ea..9f05c40 100644 --- a/src/index.ts +++ b/src/index.ts @@ -37,7 +37,7 @@ const io = socketIO(server, { res.writeHead(200, headers); res.end(); }, - maxHttpBufferSize: 2e6, + maxHttpBufferSize: 10e6, pingTimeout: 10000 }); @@ -98,8 +98,7 @@ io.on('connection', socket => { socket.on('disconnect', (reason, details) => { serverDebug( `${socket.id} was disconnected from url ${socket.conn.request.url} for the following reason: ${reason} - ${details?.message} - ${details?.description}` + ${JSON.stringify(details)}` ); socket.removeAllListeners(); });