I put a date-time (for example: 2020-03-20 13:56:57
) into Spring STOMP headers, like this:
map.put("messageTime","2020-03-20 13:56:57");
simpMessagingTemplate.convertAndSend("","",map)
The STOMP client is like this:
stomp.subscribe("",(res)=>{
let messageTime = res.headers.messageTime;
})
The client result displays like this:
messageTime:2020-03-20 13\c56\c57
:
is converted to \c
. Why?