Re: [webrtc-pc] (How) does SCTP handle CPU-bound congestion on JavaScript thread? (#2086)

This is a design problem with the eventing model of WebSockets/RTCDataChannel.  A better approach (if events were used at all) would have been to event the availability of data, then let the application retrieve the data all at once, as a sequence of messages.  That way the buildup of received (and unprocessed) data would apply backpressure.  Plus the transfer of data could avoid copies. 

-- 
GitHub Notification of comment by aboba
Please view or discuss this issue at https://github.com/w3c/webrtc-pc/issues/2086#issuecomment-457595771 using your GitHub account

Received on Friday, 25 January 2019 14:48:16 UTC