vert-x3 / vertx-stomp

STOMP client/server implementation
Apache License 2.0
30 stars 27 forks source link

STOMP client can't connect to STOMP server with non root path #74

Open AntonPozdeev opened 2 years ago

AntonPozdeev commented 2 years ago

Describe the feature

We have a STOMP server, that is created on some path, for example localhost:8080/watchApi/myStompServer

It is often case when API Gateway approach used in microservice communication.

I have seen the similar ticket https://github.com/vert-x3/vertx-stomp/issues/8 , but using non root path was added for STOMP server, not for STOMP client.

I would prefer to connect using the next way:

StompClientConnection stompClientConnection = StompClient.create(vertx).connect(80, "loclahost", "/watchApi/myStompServer").result(); stompClientConnection.subscribe("/foo", ... );

which is very common for websocket.

flupec commented 2 years ago

@AntonPozdeev it will be very helpful to use Vert.x for communication via stomp subprotocol, not only for raw websocket usecase

sabinaisayeva commented 2 years ago

Hi. Is this issue resolved? Is there any way to connect to Server with non root path?