vertx-stomp icon indicating copy to clipboard operation
vertx-stomp copied to clipboard

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

Open AntonPozdeev opened this issue 3 years ago • 2 comments

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.

AntonPozdeev avatar Dec 09 '21 14:12 AntonPozdeev

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

flupec avatar Dec 09 '21 14:12 flupec

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

sabinaisayeva avatar Aug 23 '22 07:08 sabinaisayeva