emit for socket Id code example
Example 1: socket io emit to socket id
io.to(socketid).emit('message', 'for your eyes only');
Example 2: socket emit to
io.to(socketid).emit('message', 'whatever');
io.to(socketid).emit('message', 'for your eyes only');
io.to(socketid).emit('message', 'whatever');