Jin
Jin

Reputation: 163

How to increase channelMessage max size with simpleWebRTC SDK

I got this error after sending message via webrtc, the message contents file image.

Message too large (can send a maximum of 262144 bytes)

How can I achieve this one. Thanks in advance.

Cheers

Upvotes: 0

Views: 996

Answers (1)

Philipp Hancke
Philipp Hancke

Reputation: 17350

This is done by splitting the file into several chunks and then reassembling on the other end. https://webrtc.github.io/samples/src/content/datachannel/filetransfer/ shows how.

Upvotes: 1

Related Questions