Spring WebSocket UserDestinationMessageHandler sending message to unauthenticated user -
i using spring 4.1.6.release.
- an unauthenticated client subscribing "
/user/topic/qqq
". - this converted
/topic/qqq-user{sessionid}
- the server sends message user, following:
like:
.convertandsend("/topic/qqq-user{sessionid}", "message");
and works expected.
- but, when server tries send message
like:
.convertandsendtouser({sessionid}, "/topic/qqq", "message");
but not work, , results:
userdestinationmessagehandler: - no user destinations found /user/{sessionid}/topic/qqq
the question is:
- is not task of userdestinationmessagehandler converting destination
/user/{sessionid}/topic/qqq
/topic/qqq-user{sessionid}
? - if is, not working because client not authenticated?
thank you.
have tried just
.convertandsendtouser({sessionid},"/qqq", "message");
then client subscribe as:
client.subscribe("/user/{sessionid}/qqq", callback)
Comments
Post a Comment