From 48a0d683133c9cc09fb391ae16fc390f673482bf Mon Sep 17 00:00:00 2001 From: theolivenbaum Date: Sat, 23 Apr 2022 17:01:34 +0200 Subject: [PATCH] Increase max message size to 100mb --- ElectronNET.Host/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ElectronNET.Host/main.js b/ElectronNET.Host/main.js index a80f2ba..56c34c6 100644 --- a/ElectronNET.Host/main.js +++ b/ElectronNET.Host/main.js @@ -240,7 +240,7 @@ function startSocketApiBridge(port) { server = require('http').createServer(); io = require('socket.io')(); - io.attach(server, { pingTimeout: 10000, pingInterval: 5000 }); + io.attach(server, { pingTimeout: 10000, pingInterval: 5000, maxHttpBufferSize: 1e8 }); server.listen(port, 'localhost'); server.on('listening', function () {