Home » Java » Java WebSocket private chat one operator multiple users-Exceptionshub

Java WebSocket private chat one operator multiple users-Exceptionshub

Posted by: admin February 25, 2020 Leave a comment

Questions:

To this site police. Do not remove this question.

I’m asking for advice to know what to use, I don’t have any issue with code, what I have, is useless for what I want to do, that’s why I’m asking for a question here.

I’ve made a simple chat using Java WebSocket and it works. The objective now is to make the chat private with the following rule. 1 operator can talk to many users, but the user shouldn’t see other user’s chat.

All these users (operators/users) are logged in users, so I have their session but don’t know how to do that or what type of code/technology I can use.
Any advice, please?

Thanks in advance

How to&Answers: