mhowlett / NNanomsg

.NET binding for nanomsg
MIT License
179 stars 52 forks source link

Sending and receiving messages without a topic. #30

Closed katsuragi545 closed 7 years ago

katsuragi545 commented 7 years ago

I have two programs: one that sends messages on the transport url ipc://filepath, and another that receives messages from that same transport url. The first program sends messages without a topic prepended to the message, and the second program is able to pick up the message just fine. After some processing, the second program sends out messages on the transport layer ipc://data_report.

I have a subscriber that has connected to that transport layer url, however, it does not pick up any messages for some reason. In order for a subscriber to see a message, is it required that the message have the topic name prepended in the message? I wan't to intercept everything that is transported on that layer by my subscriber. Basically, can a subscriber receive a message if the message doesn't have the topic anywhere in the message?

katsuragi545 commented 7 years ago

Figured it out - you can make your subscriber subscribe to an empty string "" in order to make it pick up any message on that transport protocol.