Closed xfg closed 7 years ago
var io = require('socket.io-emitter')({ host: '127.0.0.1', port: 6379 }); io.broadcast.emit('event', 'data');
the broadcast flag is ignored, same with the other flags.
Well, if I understand correctly, broadcast is quite useless here, since every packet is always broadcast, either to a given room or to the whole namespace.
broadcast
The volatile flag should work though.
volatile
var io = require('socket.io-emitter')({ host: '127.0.0.1', port: 6379 }); io.broadcast.emit('event', 'data');
the broadcast flag is ignored, same with the other flags.