The output would be something like the following:
Filtering out messages
Our basic stock exchange application sends messages to subscribers. It seems
everything has gone as expected, right? Unfortunately, no.
ZeroMQ matches the subscriber strings with prefix matching, which means
ZeroMQ will return Company1 , Company10 , and Company101 even if you look
for Company1 alone.
Let's change our publisher code to the following:
// Stock Market Server
// Binds PUB socket to tcp://*:4040
// Publishes random stock values of random companies