Closing Connections from Server Side in USD Viewer Streaming & Web Viewer

I am using the kit-app-template (106.4) to build the USD Viewer Streaming and the Web Viewer Sample for testing the app.

Everything works perfectly, but my issue is: How can I close an active connection from the server side?

If someone is connected to my WebRTC streaming, I want to forcefully close the active connection from the server side.

I have tried this:

kit_livestream = omni.kit.livestream.bind.acquire_livestream_interface()
kit_livestream.enable_livestream(False)

However, the app gets stuck on enable_livestream(False) when there is an active connection.

Does anyone know a proper way to close the connection from the server side?

Thanks!

Yes that is a great question. Let me ask the streaming experts and get back to you.