How to determine WebRTC dataChannel.send is delivered? #2413
-
I was searching for a way to determinate if a message have been delivered. but then i found this:
I just want to be sure about one thing: if i use ordered and reliable, Will meaning: it's not the underlying OS that actually sends the message over the network that decreases it... it's the receiver who says that? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Just wanted to share some details regarding bufferedAmount if someone else came here from search engine, during my testing in chrome, for both ordered/unordered, reliable channel, after initiating a send, the bufferedAmount will increase and then immediately go down even if the data has not been sent yet, unless if the internal buffer of sctp is full (which is around 3MB), then bufferedAmount will start piling up. |
Beta Was this translation helpful? Give feedback.
@bhupiister I would implement ACKs on top of SCTP if you care about an individual message. From MDN for bufferedAmount