I want to sent data to one specific socket ID.
We used to be able to do this in the older versions:
io.sockets.socket(socketid).emit(\'message\', \'
If you have used a namespace I found that the following works :
//Defining the namespace
var nsp = io.of('/my-namespace');
//targeting the message to socket id
nsp.to(socket id of the intended recipient).emit('private message', 'hello');
More about namespaces: http://socket.io/docs/rooms-and-namespaces/