How to receive data quickly?
Hi! I have peerA and peerB connected. And peerA would asynchronously send request to peerB ask to for a data chunk(the size is from 4mb to 8mb). When connection first established,peerA would send about 15~17 request to peerB.There is no problem in peerB,it send every data chunk successfully and quickly.But it takes long for peerA to call conn.on('data') to get the first data chunk(about 4~5s). It's there any way to improve it?
Hey I have had similar issues for a while now without any real fix, as far as reproduction goes, I've tested using https://webrtc.github.io/samples/src/content/datachannel/filetransfer/ and it seems that datachannels transferring packets larger than the MTU is slow on android even to itself locally. The example is also using a very similiar chunking system that peerjs is using.
At first I thought I need to run it through compression but the provided example worked perfectly fine on ios and desktop. I wanted to test what would happen if I upgrade the maxMessageSize in the SDP but I was having issues using a forked version of this.
I changed the peerjs package json to have this in scripts "prepare": "npm run build" but started running into this:

And so thus far, these are my findings if anyone finds them useful. I will be trying to simply transplant peerjs into my project and make these changes instead of relying on the forking methodology for now but assistance for that would be nice :).
I hava simlar issue。Seems all the send done, then the data start to recevied. Don't know why wasn't send right away.