Using expressjs and assuming that your application uses sessions and assigns usernames,you can make the user's socket join a particular room named as the user.I am using a npm module named session.socket.io which makes the session object available inside socket.io callbacks.You can find the example code here : https://gist.github.com/4378940Hope this helps you.