web3.js
web3.js copied to clipboard
envelope messages in IPC/WS
when you receive a JSON object which is larger than the buffer of the socket the json comes in chunks. https://github.com/openethereum/parity-ethereum/issues/4647
- [ ] Update dechunker logic in v4.
- [ ] Verify it on Geth and Nethermind,( Besu )
Our current code for parsing chunks is at: https://github.com/web3/web3.js/blob/e6d8c1483d33551833a64484b239fe30e2ecd1bc/packages/web3-utils/src/chunk_response_parser.ts#L47 we will double check it...
Thanks Junaid,
https://github.com/ethers-io/ethers.js/blob/39315288bee6f116e362e70c00f999ae669dd462/src.ts/providers/provider-ipcsocket.ts#L11