following the last post, it’s extremely easy to do a pub/sub empowering the zeromq.
IN C#, we setup one socket to pub type, and bind to one tcp port. IN the Node.js and Another C# client, we can create a socket with type Sub. then subscript the topics we are interested.
then in the Node.js, create one special socket sub, and remember to call subscribe with the interested topic.
C# subscriber code,