Re:What happens when you make a move in lichess.org?
by shironandon on Wednesday October 23, 2024 @02:41PM
(#41928039)
what happens to those websocket connections when the API is updated or redeployed?
[ Parent
| on HN ]
Re:What happens when you make a move in lichess.org?
by paxys on Wednesday October 23, 2024 @03:41PM
(#41928626)
It'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.
Re:What happens when you make a move in lichess.org?
by zazaulola on Wednesday October 23, 2024 @02:47PM
(#41928103)
It 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.
Re:What happens when you make a move in lichess.org?
by VoidWhisperer on Wednesday October 23, 2024 @03:08PM
(#41928337)
They werent talking about an LLM here
Re:What happens when you make a move in lichess.org?
by conover on Friday October 25, 2024 @11:13AM
(#41946043)
Along with the reconnect solution already mentioned, you can also decouple your Websocket and business logic layers using something like Pushpin: https://pushpin.org/. This allows you to deploy your business logic layer without disconnecting/reconnecting clients.