zeromq.js icon indicating copy to clipboard operation
zeromq.js copied to clipboard

Get connection metadata via zmq_msg_gets

Open seasick opened this issue 6 years ago • 1 comments

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 :smile: 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.

seasick avatar May 31 '19 08:05 seasick

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!

rolftimmermans avatar Nov 05 '19 09:11 rolftimmermans