libp2p / js-libp2p

The JavaScript Implementation of libp2p networking stack.
https://libp2p.io
Other
2.27k stars 435 forks source link

Increase WebRTC max message size #2612

Closed achingbrain closed 1 week ago

achingbrain commented 3 weeks ago

We automatically chunk stream messages larger than 16KB when sending over a datachannel.

This limit is based on browser limitations that have since been resolved.

We should be ok to increase the limit to 256KB at least, maybe more.

This needs verifying between Firefox -> Chrome and Chrome -> Firefox since that's where the original bug was.

Ref: https://blog.mozilla.org/webrtc/large-data-channel-messages/