If you need any response from the server, the server must send an emit message to the server. console.log not responding to the network.
var io = require('socket.io').listen(80); io.sockets.on('connection', function(socket) { socket.on('emailFocusOut', function(data) { data.receivedAt = Date.now(); socket.emit('emailFocusOutResponse', data);
Then on the client you can listen to 'emailFocusOutResponse' and process this message.
source share