I am on OS X 10.9 with node v0.10.22. On the examples in chapter 4, I am unable to get
publisher.bind('tcp://*:5432', ... to work. It throws an error:
events.js:72 throw er; // Unhandled 'error' event ^ TypeError: Socket is busy at Socket._ioevents (/Users/kpmiller/js/node_modules/zmq/lib/index.js:198:22) at Socket._flush (/Users/kpmiller/js/node_modules/zmq/lib/index.js:343:23) at processImmediate [as _immediateCallback] (timers.js:330:15)
publisher.bind('tcp://localhost:5432', ... works ok. It seems like a valid thing to use, but I am wondering why the code doesn’t work as is, or if this was a change in 10.9 or the node version that makes this not work.
I should add that the “*” was present in the zmq-watcher-pub.js, but the zmq-watcher-sub.js used “localhost”. This is apparent to me after I figured out what to look for. Maybe it is a typo or changed later in the process?