6 ms·
what happens to those websocket connections when the API is updated or redeployed?
by shironandon 2y ago
what happens to those websocket connections when the API is updated or redeployed?
- zazaulola 2y agoIt is to be expected that LLM will make a decision on its own if it suspects any changes to the API. In any case, there is no time to fix the code during the game.
- VoidWhisperer 2y agoThey werent talking about an LLM here
- paxys 2y agoIt's pretty easy to build auto reconnect capability in the client. The server will drop all its connections and go out of rotation, and the client will start a new connection and find the new one. If the switch happens fast enough then the user shouldn't even notice.
- conover 2y agoAlong with the reconnect solution already mentioned, you can also decouple your Websocket and business logic layers using something like Pushpin: https://pushpin.org/ https://pushpin.org/. This allows you to deploy your business logic layer without disconnecting/reconnecting clients.