Hey! what is considered as a connection termination or failure of the client for (or client leaving) Snowflake proxy?
What is the final state that I should look for to mark the end of the connection for WebRTC; to go ahead and close the connections and restart a the SDP offer request from the broker?
We also want to close if there is an error (see here).
We also added a timeout as an extra check. We can do this because the underlying layer is sending keep-alive messages every 10 seconds. You can see that in the existing code here.
We also want to close the connection if it is closed or we receive an error from the WebSocket side. See here.