mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2026-10-09 21:14:37 +00:00
make maxPayload of websocket configurable via JAMBONES_WS_MAX_PAYLOAD
This commit is contained in:
1 parent
c88163fe11
commit
468a9e6d6b
1 file changed
+1
-1
@@ -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}`};
|
||||
|
||||
|
||||
Reference in new issue
Block a user