diff --git a/ts/textsecure/WebAPI.ts b/ts/textsecure/WebAPI.ts index 24d4ba76b5..04dd5716cb 100644 --- a/ts/textsecure/WebAPI.ts +++ b/ts/textsecure/WebAPI.ts @@ -172,7 +172,9 @@ function _createSocket( }; } - return new WebSocket(url, undefined, undefined, undefined, requestOptions); + return new WebSocket(url, undefined, undefined, undefined, requestOptions, { + maxReceivedFrameSize: 0x210000, + }); } const FIVE_MINUTES = 1000 * 60 * 5;