LiveSplit / livesplit-core

livesplit-core is a library that provides a lot of functionality for creating a speedrun timer.
https://livesplit.org/
Apache License 2.0
209 stars 56 forks source link

Implement the Server Protocol #819

Closed CryZe closed 1 week ago

CryZe commented 1 week ago

This implements a new improved version of the server protocol. The following changes have been made:

The protocol is still work in progress and we will evolve it into a protocol that fully allows synchronizing timers over the network. #260

The event sink has now been renamed to command sink, because there is now a clear distinction between incoming commands and events that are the results of these commands.

CryZe commented 1 week ago

Oh and because we now have specific error conditions for all the commands (split, undo_split, ...), there's a test for every possible error condition on every command. I think that should really help with robustness.

https://github.com/LiveSplit/livesplit-core/pull/819/files#diff-0b9fdd824c8bd101ce275c01f2a6a24a6b68b5cc857b99e14323a632b5e8e7d4