stomp-js / ng2-stompjs-angular7

n2-stompjs sample for Angular 7
15 stars 11 forks source link

can't find any help on watching user specific queue #21

Closed loicsalou closed 4 years ago

loicsalou commented 4 years ago

Hi, sorry to post this herer but after several attempts I still can't watch a user message queue. I have implemented a springboot backend which provides websockets ability and an Angular8 front-end which does the following:

on the frontend size I have used, so far, sockjs along with stompjs and all is working fine.

Now I'd like to use @stompjs/ng2-stompjs. So I have replaced sockjs and stompjs with @stompjs/ng2-stompjs. Broadcast is working correctly, but sending a message to "admin" user does not work and I can't figure out why. Message is correctly sent to the backend and I can see Spring is emitting the message to the specific queue. However nothing reaches the browser.

Is there any such example somewhere ? I have tried many watch urls ("/queue/message", "/user/queue/message", "/user/admin/queue/message"...)

thanks in advance for any help !

kum-deepak commented 4 years ago

Considering that you have older code that works, I will suggest the following:

Please let me know how it goes.

@stomp-js/ng2-stomp internally uses @stomp/stompjs for all actual work.