If a datachannel sends data and then immediately closes the connection:
while (...) {
dc.send(buf)
}
dc.close()
If it sends a lot of small messages then the remote does not always receive all of the data.
I've opened #374 which has a failing test showing the behaviour.
There's a codepen here which allows running the same code in a browser, it works in Chrome and Firefox Nightly so this appears to be a bug in node-datachannel or libdatachannel.
If a datachannel sends data and then immediately closes the connection:
If it sends a lot of small messages then the remote does not always receive all of the data.
I've opened #374 which has a failing test showing the behaviour.
There's a codepen here which allows running the same code in a browser, it works in Chrome and Firefox Nightly so this appears to be a bug in node-datachannel or libdatachannel.