javascript - How to fully close a WebRTC connection -


when trying close webrtc connection after call using rtc.close(), recognize about:webrtc-internals in chrome , about:webrtc keep connections listed. in firefox, marked closed, while in chrome not see such denotation.

i asking because seems have significant performance impact after time. after having done lot of calls, performance impaired , webrtc-internals lists large number of connections.

is there more closing webrtc connection .close() make browser forget connection?

you should see peer connection go iceconnectionstateclosed , signalingstateclosed. 1 thing should ensure you're stopping local media stream tracks. if don't, browser keep them open, because aren't closed when peer connection closed.

pc closed


Comments