N
N
NurSultan2015-11-18 09:16:35
Java
NurSultan, 2015-11-18 09:16:35

How to implement chat like whatsapp?

I want to create a chat like whatsapp on sockets, but I can’t implement a separate list for each client, I made it so that the server sends a message to everyone and the client has a common ArrayAdapter for all clients and conferences. please tell me thanks

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
LeEnot, 2015-11-18
@nurs1110

When registering in a chat, you need to assign a unique identifier to each user and conference.
1. When a user sends a message, he will (implicitly) also send the identifier of the target of the message - another user or conference.
2. Having received a message, the server must check who it is intended for and send it out only to the desired targets.
3. The application, having received the message, will determine by the identifier in which tab to display it

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question