Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to new JSON messaging standard #6

Closed
wants to merge 3 commits into from

Conversation

jhobz
Copy link
Contributor

@jhobz jhobz commented Mar 10, 2022

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
Copy link
Owner

satanch commented Mar 10, 2022

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

@satanch
Copy link
Owner

satanch commented Mar 10, 2022

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

@jhobz
Copy link
Contributor Author

jhobz commented Mar 10, 2022

Yeah, for sure, no worries!

@satanch
Copy link
Owner

satanch commented Feb 4, 2024

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