Skip to content

Is there any advice, doc, or examples available regarding interop with Node.js? #198

Answered by AshleyF
rcmurray asked this question in Q&A
Discussion options

You must be logged in to vote

Ah, I see. Indeed the NetMQWriter and NetMQSource components support only pub/sub at the moment, which seemed to fit best with \psi's unidirectional streams. The writer does support multiple topics over one port, if that helps. NetMQWriter defaults to one topic, but calls to AddTopic(...) will create new receivers. For example:

var mq = new NetMQWriter(p, "tcp://localhost:12345", JsonFormat.Instance);
someStream.PipeTo(mq.AddTopic("some-topic"));
someOtherStream.PipeTo(mq.AddTopic("some-other-topic"));

I would imagine that your scenario may require extending or adding components. There is a socket.io package for .NET. If you went that route, I'd suggest following the pattern in the NetMQ*

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@rcmurray
Comment options

Comment options

You must be logged in to vote
1 reply
@rcmurray
Comment options

Answer selected by rcmurray
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants