Skip to content

Update to new JSON messaging standard#6

Closed
jhobz wants to merge 3 commits into
satanch:mainfrom
jhobz:json-messaging
Closed

Update to new JSON messaging standard#6
jhobz wants to merge 3 commits into
satanch:mainfrom
jhobz:json-messaging

Conversation

@jhobz

@jhobz jhobz commented Mar 10, 2022

Copy link
Copy Markdown
Contributor

See LiveSplit/LiveSplit.Server#39 for more
details.

Also fixes a bug (or rather just weird edge case interaction) with the socket data listener where multiple messages would get combined into one at very fast polling rates. I was able to run .getAll() every 5ms without errors at my fastest testing with these changes.

jhobz added 3 commits March 9, 2022 13:05
This is to coincide with a change to the LiveSplit.Server repo
At very fast polling intervals, the socket will sometimes send more than
one message from the server in a single 'data' event. This change
gracefully handles these edge cases, resulting in successful tests at as
fast as polling every 5ms.
@satanch

satanch commented Mar 10, 2022

Copy link
Copy Markdown
Owner

Thank you for your PR!
I need some time to check this.

@satanch

satanch commented Mar 10, 2022

Copy link
Copy Markdown
Owner

Also, new LiveSplit server version must be released before I merge this into main branch.

@jhobz

jhobz commented Mar 10, 2022

Copy link
Copy Markdown
Contributor Author

Yeah, for sure, no worries!

@satanch

satanch commented Feb 4, 2024

Copy link
Copy Markdown
Owner

This PR is pretty outdated. Let's coma back to this issue when server changes would be applied.

@satanch satanch closed this Feb 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants