Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sending message to single person using Spring STOMP websockets

On the internet I've found some info on how to accept and send messages using Spring and STOMP, however I did not find any good examples on how to send a message to a single user. Only how to broadcast them to every single one. Are there any good examples on it?

I basically want to run one or two controllers with STOMP in a Spring MVC structure, so I can authenticate people outside of the websocket, and later on tie that authentication to the STOMP controllers, and for that I obviously need to be able to send messages to individuals.

like image 792
Kristof Avatar asked Jan 29 '14 22:01

Kristof


1 Answers

There is a reasonable spring blog post which covers this: http://assets.spring.io/wp/WebSocketBlogPost.html

The source code is on github (and linked from the blog).

like image 172
Jaimie Whiteside Avatar answered Oct 25 '22 02:10

Jaimie Whiteside