-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement the Server Protocol (#819)
This implements a new improved version of the server protocol. The following changes have been made: - The protocol is based on JSON messages. This allows for example for more structured commands where it's easier to provide multiple arguments for a command and even have optional arguments. - For each command, there is a corresponding response. It is either a `success` response with possibly the value that you requested, or an `error` response with an error `code`. - On top of the responses you also get sent `event` messages that indicate changes to the timer. These can either be changes triggered via a command that you sent or by changes that happened through other sources, such as the user directly interacting with the timer or an auto splitter. The protocol is still work in progress and we will evolve it into a protocol that fully allows synchronizing timers over the network. 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.
- Loading branch information
Showing
41 changed files
with
2,845 additions
and
806 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
name = "livesplit-core-capi" | ||
version = "0.11.0" | ||
authors = ["Christopher Serr <[email protected]>"] | ||
edition = "2018" | ||
edition = "2021" | ||
|
||
[lib] | ||
name = "livesplit_core" | ||
|
@@ -15,13 +15,14 @@ time = { version = "0.3.4", default-features = false, features = ["formatting"] | |
simdutf8 = { git = "https://github.com/CryZe/simdutf8", branch = "wasm-ub-panic", default-features = false } | ||
|
||
wasm-bindgen = { version = "0.2.78", optional = true } | ||
wasm-bindgen-futures = { version = "0.4.28", optional = true } | ||
web-sys = { version = "0.3.28", optional = true } | ||
|
||
[features] | ||
default = ["image-shrinking"] | ||
image-shrinking = ["livesplit-core/image-shrinking"] | ||
software-rendering = ["livesplit-core/software-rendering"] | ||
wasm-web = ["livesplit-core/wasm-web", "wasm-bindgen", "web-sys"] | ||
wasm-web = ["livesplit-core/wasm-web", "wasm-bindgen", "wasm-bindgen-futures", "web-sys"] | ||
auto-splitting = ["livesplit-core/auto-splitting"] | ||
assume-str-parameters-are-utf8 = [] | ||
web-rendering = ["wasm-web", "livesplit-core/web-rendering"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.