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 connection metadata via zmq_msg_gets #327

Open
seasick opened this issue May 31, 2019 · 1 comment
Open

Get connection metadata via zmq_msg_gets #327

seasick opened this issue May 31, 2019 · 1 comment

Comments

@seasick
Copy link

seasick commented May 31, 2019

I'm working on a project where I'm using CURVE and ZMQ with zeromq.js - thanks for all your work creating this library!

Now I'd like to use the metadata provided with the connection for authentication/authorization, but I've found no way yet to do this with this library. As workaround I am currently adding this information to every message I'm sending.

I don't think this has been implemented yet, but maybe I'm wrong 😄
Are there any plans to add this feature to this library?

I think I could manage to add this feature myself, but I definitely would need some guidance on how to add it to this library without breaking any existing workflow/patterns/whatnot. From what I've gathered zmq-msg-gets is the function that would get me the desired meta data I'm looking for.

@rolftimmermans
Copy link
Member

Seems like an excellent question but I don't have a clear idea what would make for a good, unintrusive API to support this. Suggestions are welcome!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants