Spring 4 WebSocket發送到指定用戶

在使用  WebSocket 實現發送消息到指定用戶的時候用到了 messagingTemplate.convertAndSendToUser("userName"session ,"message") 函數。app 一會兒不太明白爲何能夠發送到指定用戶。函數 參考 :http://blog.csdn.net/q_an1314/article/details/53640042spa 裏面的一段描述
相關文章
相關標籤/搜索