Websockets, SockJs, Stomp, Spring, RabbitMQ, delete User specific Queues automatically

后端 未结 1 1112
长情又很酷
长情又很酷 2021-02-10 04:28

I hope someone can help me with this issue. I am using the Websocket support of Spring with SockJs and StompJs. I subscribed to a queue like this:

    var socket          


        
1条回答
  •  别那么骄傲
    2021-02-10 05:26

    had same problem, from the documentation:

    RabbitMQ creates auto-delete queues when destinations like /exchange/amq.direct/position-updates are used. So in that case the client could subscribe to /user/exchange/amq.direct/position-updates

    remember to add '/exchange/' as a destination prefix in stomp broker relay configuration

    0 讨论(0)
提交回复
热议问题