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

RFE: Subscription to multiple actions at once #27

Open
Herst opened this issue Jul 7, 2017 · 3 comments
Open

RFE: Subscription to multiple actions at once #27

Herst opened this issue Jul 7, 2017 · 3 comments

Comments

@Herst
Copy link
Contributor

Herst commented Jul 7, 2017

Might look like the following:

// get an event when any question is created, updated or deleted
var msg = {
  stream: "questions",
  payload: {
    action: "subscribe",
    data: {
      action: ["create", "update", "delete"]
    }
  }
}
@linuxlewis
Copy link
Owner

I like this idea. How would you handle when subscriptions that have different requirements? IE update all resources vs update an individual?

@Herst
Copy link
Contributor Author

Herst commented Jul 9, 2017

Of course not all combinations make sense, e.g. individual list, either return an error or silently ignore.

BTW, did you see #22?

@linuxlewis
Copy link
Owner

I would rather have an error for an invalid combination of subscriptions. We should consider the operation either all or nothing

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

2 participants