lichess-org / scalachess

Chess API written in scala. Immutable and free of side effects.

Home Page:https://lichess.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Include server time with game state returned by the board stream endpoint

johtso opened this issue · comments

I'm trying to implement a custom client for playing games, and it occurred to me that it would be useful if there was a server time included with each object returned by the board stream API.

This would allow updating the client game clock with the correct time regardless of any hiccups / delay in getting the message.

GAME_TIME = REPORTED_GAME_TIME + (NOW - LICHESS_SERVER_TIME)

the correct repository for this is ornicar/lila