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

How do I create an event? #53

Closed
pmbnecc opened this issue Dec 5, 2013 · 4 comments
Closed

How do I create an event? #53

pmbnecc opened this issue Dec 5, 2013 · 4 comments

Comments

@pmbnecc
Copy link

pmbnecc commented Dec 5, 2013

I am trying to use curl to create an event from the command line to test pushd. I can register and I can ping, but I don't see how to create an event.

Thanks!

@YogeshLele
Copy link

https://github.com/rs/pushd#subscriptions

Events are auto created at the time of the first subscription.

@pmbnecc
Copy link
Author

pmbnecc commented Dec 5, 2013

"For instance, if your app is news related, you may want to create one subscriptable event for each news category." How do you do that? I don't see an example that actually creates an event. I see how to subscribe to an event, but not actually creating the even.

@Lloyd66
Copy link

Lloyd66 commented Dec 5, 2013

As YogeshLele said, you can't create an event without subscribers, the only way is to subscribe first.

As you can see in the doc : https://github.com/rs/pushd#event-ingestion "You don't need to create events before sending them. If nobody is subscribed to a given event, it will be simply ignored"

@pmbnecc
Copy link
Author

pmbnecc commented Dec 8, 2013

OK. I guess I did not understand that it could be that simple. I was able to create an event, and then have a subscriber subscribed to the event.

Thanks!

@pmbnecc pmbnecc closed this as completed Dec 8, 2013
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