satanch / node-livesplit-client

Zero-dependency Node.js client library for the LiveSplit Server.
https://satanch.github.io/node-livesplit-client/
MIT License
12 stars 3 forks source link

Implement command queue #9

Closed AkiteruSDA closed 6 months ago

AkiteruSDA commented 8 months ago

Commands that expect a response from LiveSplit Server are now processed using a queue. This allows the library to be compatible with traditional Promise patterns. Commands that don't expect a response that are sent while the queue is being processed are postponed until the processing is finished so as to not disrupt the listening for 'data' events.

satanch commented 6 months ago

Thank you!