how to create method send message socket io code example
Example: How to send a message to a particular client with socket.io
io.sockets.in('[email protected]').emit('new_msg', {msg: 'hello'});
io.sockets.in('[email protected]').emit('new_msg', {msg: 'hello'});