socket to check if emit code example
Example 1: socket emit to
io.to(socketid).emit('message', 'whatever');
Example 2: socket emit only to sender
// Send to the sender and noone else
socket.emit('hello', msg);
io.to(socketid).emit('message', 'whatever');
// Send to the sender and noone else
socket.emit('hello', msg);