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

Get hooks with META key/value info #296

Closed
tobilg opened this issue Apr 10, 2018 · 2 comments
Closed

Get hooks with META key/value info #296

tobilg opened this issue Apr 10, 2018 · 2 comments

Comments

@tobilg
Copy link
Contributor

tobilg commented Apr 10, 2018

Is there a way to retrieve the META key/value information which was set by the SETHOOK command? I think the HOOKS command doesn't retrieve it by default, and according to the docs there are no other options than specifying a pattern.

I see this for example:

{"ok":true,"hooks":[{"name":"fence1","key":"test","endpoints":["amqp://guest:guest@127.0.0.1:5672/webhook-events?route=http"],"command":["NEARBY","test","FENCE","DETECT","enter,exit","POINT","33.462","-112.268","5000"]},{"name":"fence2","key":"test","endpoints":["amqp://guest:guest@127.0.0.1:5672/webhook-events?route=http"],"command":["NEARBY","test","FENCE","DETECT","inside,outside,cross,enter,exit","POINT","33.5123","-112.2693","50000"]}],"elapsed":"53.017µs"}

when doing a HOOKS *. Thanks!

@tidwall
Copy link
Owner

tidwall commented Apr 10, 2018

Thanks for mentioning this oversight. The metas will also be sent over each geofence notification belonging to that hook.

I just pushed an update to the master branch.

@tobilg
Copy link
Contributor Author

tobilg commented Apr 10, 2018

Thanks a lot for the super fast response! I'll just watch for the next release then :-)

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