Reputation: 361
I am about to build a small application based on websockets. I found this little library called java-websockets and if works just fine. My problem is now, that I have not found any way to identify clients and/or group them so that instead of broadcasting to all I can select a specific group to which I can send my notification. Would be great if anybody knows how to do it with this framework or knows any different framework which does the same it such an esay way. Thanks
Library: https://github.com/TooTallNate/Java-WebSocket
Upvotes: 0
Views: 1132
Reputation: 1463
What you need to do is as below:
Specify group at server side
Create connection with specified group if only for server side triggering, or also pass it to client side and let it handled by client as needed.
Edit:
Just tried a 'handled by client' version, refer to online demo, project at github and/or related article at my blog
Upvotes: 1