schlagmichdoch / PairDrop

PairDrop: Transfer Files Cross-Platform. No Setup, No Signup.
https://pairdrop.net
GNU General Public License v3.0
4.4k stars 245 forks source link

Implement a fallback to send texts bigger than the max message size #280

Open schlagmichdoch opened 7 months ago

schlagmichdoch commented 7 months ago

Currently, sending messages between Firefox and Chrome that exceed ~180 kB throw an error. This is because the maximum size of WebRTC messages for Chrome is 256 kB and base64 encoding the message bloats it.

This PR implements a fallback for bigger text messages. These are then sent via the File Sending API including a Message Transfer Request.