-
Notifications
You must be signed in to change notification settings - Fork 90
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot subscribed to different topics withj the same client #100
Comments
@gadieichhorn, yes, it is designed in a way to handle all the incoming publishes by the one handler, so it is not a bug. There is some issue related to the described feature functionality: #55. |
If you would like to, you can prototype the API you would like to see in the client and submit a PR. We will see and discuss. |
ok, this make sense, basically it is ok to use different clients for differnet topics in the same verticle? I also looked at my old Paho code, it works the same way. here is how I changed the tests to work
|
@gadieichhorn, Yes, I think it's fine, but I would not recommend it. I would figure out what is the path of the message in publishHandler and routed it to a related handler, so it is super easy. |
Why having a different handler for each subscribed topic ? or why having a different client for each topic to subscribe ? The |
I think this is a missing option with the spec. I would like to register different handlers to different topics with the same client so I can handle different topics in specific way.
here is a simple test that breaks becuase the first handler will take all messages
Do I have to create seperate clients for each publish handler?
The text was updated successfully, but these errors were encountered: