var io = require('socket.io')(); io.sockets.emit('an event sent to all connected clients'); io.emit('an event sent to all ...
socket.io