Reputation: 163
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
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