Home > Back-end > How to implement one-on-one communication in instant messaging
How to implement one-on-one communication in instant messaging
Time:09-23
Network programming:
In the instant communication system developed on the c/s architecture model, how to implement the customer one-on-one communication?? Now my idea is that the server records the client's unique identifier, and the connection, corresponding to the client when the client send messages to the client B, the service side to find the client B corresponding connection (socket), send A message, I tried, I just described method, when the message is sent by the server to the client after B, the client will be dropped, hope leaders can give me A better solution
CodePudding user response:
You said right, is to do so as to the problem of drops, it's probably an bug,