Increase 'maxReceivedFrameSize' and 'maxReceivedMessageSize' values for your WebSocket connection
A WebSocket request to an EVM node errors out with the following message:
Frame size of X bytes exceeds maximum accepted frame size
The payload from the EVM node exceeds the default message size quota in your client application.
Increase the quota by setting the values for 'maxReceivedFrameSize' and 'maxReceivedMessageSize' in your client application.
A web3.js example:
var Web3 = require('web3');
var add = 'wss://ws-nd-123-456-789.p2pify.com/3c6e0b8a9c15224a8228b9a98ca1531'
var web3 = new Web3(new Web3.providers.WebsocketProvider(add,
Article is closed for comments.