socket io tutorial - Example Server Side code for handling Users - socket io android - socket io client
Example Server Side code
Firstly it's important to note that when a new socket is created it is assigned a unique Id which is retrieved by calling socket.id. This id can then be stored within a user object and we can assign an identifier such as a username which has been used in this example to retrieve user objects.
This is by no means a complete example of even close to what is possible but should give a basic understanding of an approach to handling users.