BEFORE YOU MARK THIS QUESTION AS A DUPLICATE THERE IS ONE REQUIREMENT!
It needs to work with multiple servers (i.e. socket.io-redis) and it needs to work with socket.io version 1.2.1. Similar questions such as Socket.io disconnect client by id or SocketIO: disconnect client by socket id? do not fufill both of those requirements.