Is there a best way to measure incoming or outgoing message size of a WebRTC message?
I ended up altering PeerJS to return a Blob on connection.send
. This blob has a size parameter, in bytes. I don't know (yet) if this is exactly the size-on wire, but it seems like a good start.
https://developer.mozilla.org/en-US/docs/Web/API/Blob.size
Two possible options
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With