How to mix spring-data-rest with spring websocket into a single implementation

Scenario 2 talks about, in the last step, a single client.But I thought your requirement was for a topic since you wanted multiple clients.
If I wanted to complete 2 for your stated requirement, then you might want to maintain a list of clients and implement your own queue or use a ForkJoinPool to message all your clients listening in on your WebSockets. Having said that, A topic is definitely more elegant here but overall looks too complicated with different interfaces

For all messages from client to server, just go with a simple wire protocol and use a collection to parameterize, it could be
RParam1…….

At the server, you need a controller to map these to different requests(and operations). Somehow does not look like too much work.
Hope this helps.

Leave a Comment