Hello, I have used the code given here to create the webrtc application. The issue with this application is that the ports remains occupied even if we close the live view is closed or peers are disconnected.
Could anyone help me understand:
Why WebRTC keeps the ports occupied after disconnection?
If there’s a way to explicitly release the port sooner?
Does anyone know why this happens or have tips on managing WebRTC port usage so they release more quickly after a disconnect? Any advice or best practices would be super helpful!
Thanks in Advance!