-
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
Vert.X MQTT Router #55
Comments
I really think that it's a cool idea ! |
@ppatierno sure. My project kind of requires this functionality anyway, so I'll work on that and submit a pr. Also, what about wildcards? As descibed here. I'm particularly interested in single-level "+" wildcards and to be able to get the value of the single-level wildcard in the handler. What do you think? |
Good to know, waiting for your PR ! :) |
@pmlopes as we do have a new implementation of router for vertx-web wouldn't it make sense to share common bits with this forthcoming router ? i.e have a component like vertx-uri-router |
@ppatierno suppose the route definition is like this: and a client publishes a message on the topic "foo/whatever/bar" I want to get the value of the + in a variable. In the above case the value of the wildcard is "whatever". But if the route is
I want to be able to identify the 2 wildcards. That is why I initially suggested
This way we can identify between both parameters.
|
As I said I don't agree on having a non standard MQTT support for this feature. |
@ppatierno ok let's follow the standards. Then I'll implement the wildcards like this
and if there is need to get the value of the wildcard, one will need to split the topic name |
@vietj could you make a separate package for the router files from the vertx-web? A common router package that will be used in vertx-web and vertx-mqtt. I think I've done the most part of the MQTT Router, but I've added the entire vertx-web to my vertx-mqtt. I'll update the new router package with the changes I made. |
@AGutan that's something we need to discuss with @pmlopes and see how best we can address this |
Ping from 2019 |
@vagola unfortunately there is no progress on this issue yet |
What is your opinion on adding a Router for handling MQTT messages from clients?
Something very similar to the Vert.X Web Router.
Potential usage:
I think it will add a ton of convenience instead of manually handling every published message.
My use case requires an API, but I prefer MQTT instead of HTTP since it is IoT based.
The text was updated successfully, but these errors were encountered: