Cqsi / lichs

♟ Play chess against real players in your terminal using Lichess
https://pypi.org/project/lichs/
MIT License
117 stars 19 forks source link

Lichess. How close the connection? #80

Open 9acca9 opened 2 years ago

9acca9 commented 2 years ago

Hi. This is a question, not about lichs. Maybe you can help me. Im using berserk to manage the lichess api. I want to cancel a seek i create. How i can do that? In the lichess api reference says this:

Keep the connection open to keep the seek active.

If the client closes the connection, the seek is canceled. This way, if the client terminates, the user won't be paired in a game they wouldn't play. When the seek is accepted, or expires, the server closes the connection.

But, how close the connection? Dont find anything, probably is too obvius and im ignorant. im using berserk. How you would "close the connection" in your program?

Thanks!