Re: [webrtc-pc] Section 6.4: Datachannel Garbage Collection

Calling pc.close() seems like it should invoke the data channel close procedure (as though RTCDataChannel.close() were called): 

When the close method is called, the user agent must run the following steps:

Let channel be the RTCDataChannel object which is about to be closed.

If channel's readyState is closing or closed, then abort these steps.

Set channel's readyState attribute to closing.

If the closing procedure has not started yet, start it.

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

Received on Wednesday, 31 May 2017 21:20:37 UTC