socket emit only to sender code example Example: socket emit only to sender // Send to the sender and noone else socket.emit('hello', msg);