I am using webrtc in my project. But when the RTCPeerConnection.iceConnectionState='closed'
it is not being removed from browser (Google Chrome 67.0.3396.99) .
I have used RTCPeerConnection.close()
and after that I am setting the connection object to null
. But still it is being showed in chrome://webrtc-internals/. The problem is that there can be too many connections in my application, so when the connections are not cleared, I am not able to create any new connection after some time. It is showing too many connection error in my application. Can someone please help me resolving the issue?
Thanks