I'm using Spring Messaging and Spring Socket 4.0.5.RELEASE
.
I would like to send a plain String message to the broker. It turns out that such a String is escaped, e.g. when doing the following on the server side:
private MessageSendingOperations<String> messagingTemplate;
messagingTemplate.convertAndSend("/app/someendpoint", "This is a String with a quotation mark: \". ");
then a subscribed STOMP client receives the following message:
<<< MESSAGE
content-type:application/json;charset=UTF-8
subscription:sub-0
message-id:l6dvrpro-3
destination:/app/someendpoint
content-length:46
"This is a String with a quotation mark: \". "
So the payload includes surrounding quotation marks and escaped quotation marks.
How can I send an unescaped, "normal" String?