stomp-js / rx-stomp

STOMP adaptor for RxJS
Apache License 2.0
110 stars 21 forks source link

Not working with sending to specific a user. #530

Closed orcunozbay closed 9 months ago

orcunozbay commented 1 year ago

When that is;

  super.watch('/user/user-id/test').subscribe((message: Message) => {
      console.log("working",message)
    });

working.

But when that is;

  super.watch('/user/test').subscribe((message: Message) => {
      console.log("desired usage not working",message)
    });

You can use any example tutorial with spring boot. I have tried https://www.youtube.com/watch?v=LdQY-OUM2mk&ab_channel=LiliumCode as last, not working again.

Also, I cannot find any example of that, I cannot find sessionId. There is a old example that is not using for now;

  var url = this.stompClient.ws._transport.url;
            url = url.split("ws/")[1];
            url = url.replace("/websocket", "");
            this.sessionId = url.replace(/^[0-9]+\//, "").trim();
nguyen1998pr commented 9 months ago

same issue too

kum-deepak commented 9 months ago

This does not seem to be an issue with this library. I do not use Spring Boot and will be unable to provide specific instructions. I suggest checking the Spring Boot documentation.