lichess-org / lila

♞ lichess.org: the forever free, adless and open source chess server ♞
https://lichess.org
GNU Affero General Public License v3.0
15.63k stars 2.28k forks source link

New API Endpoints: Lobby Games #15748

Closed Krakenmeister closed 1 month ago

Krakenmeister commented 3 months ago

Currently there is no way to view/join open lobby games as they are listed on the main homepage without the use of websockets. Adding this capability through new endpoints would provide a great alternative to seeking where you can pick and choose your opponents and have more control of when you get paired up.

Additionally, an endpoint with a combination of lichess TV and the lobby filter feature would be nice -- the ability to retrieve any ongoing games with customized filters. Current-game only really works if you have a particular user in mind rather than a more generalized open search. I personally would mainly use this to spectate games of lower elos but I could see it having some other niche use cases.

Krakenmeister commented 3 months ago

Also, new endpoints to be able to join the common time control pools (that are within the time control restraints of the board API) would add great support

ornicar commented 1 month ago

There won't be lobby API.

Just issue seeks and wait for an opponent.

A seek that is compatible with a pool will join it automatically.