web3.js icon indicating copy to clipboard operation
web3.js copied to clipboard

envelope messages in IPC/WS

Open jdevcs opened this issue 2 years ago • 2 comments

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 )

jdevcs avatar Nov 21 '23 10:11 jdevcs

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,

Muhammad-Altabba avatar Nov 28 '23 16:11 Muhammad-Altabba

https://github.com/ethers-io/ethers.js/blob/39315288bee6f116e362e70c00f999ae669dd462/src.ts/providers/provider-ipcsocket.ts#L11

jdevcs avatar Nov 28 '23 16:11 jdevcs