From 195b778737ff16e8e32a557752b5bd2b3b242c0a Mon Sep 17 00:00:00 2001 From: yann300 Date: Sat, 24 Aug 2019 17:41:39 +0200 Subject: [PATCH] set max size --- src/websocket.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/websocket.js b/src/websocket.js index 4050bbff0d..92b730bed0 100644 --- a/src/websocket.js +++ b/src/websocket.js @@ -22,7 +22,9 @@ class WebSocket { this.wsServer = new WebSocketServer({ httpServer: this.server, - autoAcceptConnections: false + autoAcceptConnections: false, + maxReceivedFrameSize: 131072, + maxReceivedMessageSize: 10 * 1024 * 1024, }) this.wsServer.on('request', (request) => {