-
Notifications
You must be signed in to change notification settings - Fork 38.8k
Description
zyro opened SPR-11992 and commented
in order to send messages to user destinations you need to supply the userDestinationPrefix and the brokerPrefix or else UserDestinationMessageHandler will resolve the destination but then SimpleBrokerMessageHandler will ignore it because it lacks a brokerPrefix.
at least thats the behavior i am currently seeing. taking a quick look at the portfolio sample app, it is done there just like that (userDestinationPrefix + brokerPrefix) - https://github.com/rstoyanchev/spring-websocket-portfolio/blob/master/src/main/webapp/traditional/portfolio.js.
it looks like the docs are missing that part: http://docs.spring.io/spring/docs/current/spring-framework-reference/html/websocket.html#websocket-stomp-user-destination only mentions the userDestinationPrefix
the linked github issue above is primarily for reference showing an example of the resulting confusion ;)
thanks, zyro
Affects: 4.0.5, 4.0.6
Reference URL: zyro23/grails-spring-websocket#6 (comment)