socket.io emit does not emit any value code example
Example 1: socket emit to
io.to(socketid).emit('message', 'whatever');
Example 2: socket emit to specific room using nodejs socket.io
io.on('connection', socket => { socket.on('say to someone', (id, msg) => { socket.to(id).emit('my message', msg); });});