Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: increase WebRTC max datachannel message size (#2627)
We automatically chunk stream messages larger than [16KB](https://github.com/libp2p/js-libp2p/blob/main/packages/transport-webrtc/src/stream.ts#L50) when sending over a datachannel. This limit is based on [browser limitations](https://lgrahl.de/articles/demystifying-webrtc-dc-size-limit.html) that have since been resolved. We should be ok to increase the limit to [256KB at least](https://issues.webrtc.org/issues/40644524), maybe more. Ref: https://blog.mozilla.org/webrtc/large-data-channel-messages/ Fixes #2612
- Loading branch information