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

Acknowledge received message #22

Open
sindresorhus opened this issue Apr 9, 2015 · 3 comments
Open

Acknowledge received message #22

sindresorhus opened this issue Apr 9, 2015 · 3 comments

Comments

@sindresorhus
Copy link
Contributor

By replying back. I want to ensure the status was changed successfully. Could be useful to also include in the reply whether the sent command was valid.

@tonsky
Copy link
Owner

tonsky commented Apr 12, 2015

UDP is not reliable. You can wait for infinite amount of time for your ack.
Is it ok? What use case do you need this for?

On Thu, Apr 9, 2015 at 1:47 PM Sindre Sorhus [email protected]
wrote:

By replying back. I want to ensure the status was changed successfully.
Could be useful to also include in the reply whether the sent command was
valid.


Reply to this email directly or view it on GitHub
#22.

@sindresorhus
Copy link
Contributor Author

Is it ok?

I guess I could just time out after x seconds.

What use case do you need this for?

It's normal to want to know if an operation succeeded. Imagine I use AnyBar to indicate whether the test suite passed. I would want to know if the status dot isn't correctly updating.

@tobylane
Copy link

How about a anybar command that returns the current state

anybar red
anybar status

Outputs "red".

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

No branches or pull requests

3 participants