Increase maximum frame size for incoming websocket messages

This commit is contained in:
Scott Nonnenberg 2020-07-20 16:51:12 -07:00
parent efaa856c35
commit 36a0d1efcf

View file

@ -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;