You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The pdf is very helpful. It turns out that the empty string DOES work - and appears to be interpreted as “subscribe to all messages”. I had failed to specify “ZMQ_SUB” in my init.socket call.
For what it’s worth, my learning exercise is a companion piece to the zmq chapter in
Node.js the Right Way: Practical, Server-Side JavaScript That Scales
by Jim R. Wilson
Your library works great now that I am using it properly. Many thanks.
My working version (on the off chance you’d find it interesting) subscribing to the messages published in Wilson’s zmq-watcher-pub.js:
?subscribe does not show an example (as far as I could see).
experimentation failed:
context <- init.context()
socket <- init.socket(context, "ZMQ_REQ")
connect.socket(socket, "tcp://localhost:5432")
subscribe(socket, "") # following node.js example
--> Invalid argument
I'd be very grateful for a small working example!
Thanks,
The text was updated successfully, but these errors were encountered: