You’re writing a web UI that uses web sockets to communicate with the server. The websocket you’re connected to is designed to force shutdown after receiving a certain RPC. But then a new websocket on the same port and IP pops up that you need to connect to. This new web socket does not have the same methods for RPC as the previous one.
How do you ensure a smooth transition on the UI side of things?