From 468a9e6d6b881f9c8d7057be7d7e5c93ba4db8a5 Mon Sep 17 00:00:00 2001 From: Dave Horton Date: Tue, 13 Sep 2022 12:35:31 +0200 Subject: [PATCH] make maxPayload of websocket configurable via JAMBONES_WS_MAX_PAYLOAD --- lib/utils/ws-requestor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/utils/ws-requestor.js b/lib/utils/ws-requestor.js index d440a082..ef7ac6d0 100644 --- a/lib/utils/ws-requestor.js +++ b/lib/utils/ws-requestor.js @@ -187,7 +187,7 @@ class WsRequestor extends BaseRequestor { followRedirects: true, maxRedirects: 2, handshakeTimeout, - maxPayload: 8096, + maxPayload: process.env.JAMBONES_WS_MAX_PAYLOAD ? parseInt(process.env.JAMBONES_WS_MAX_PAYLOAD) : 24 * 1024, }; if (this.username && this.password) opts = {...opts, auth: `${this.username}:${this.password}`};