How do I send a private message to another user through sockets?

This article might help you: