Share your code.
Events with recipient address.
$ npm install switch-emitter
Listen and emit to addressed events
var switchEmitter = ;var emitter = ;var recipientA = emitter;var recipientB = emitter;// recipientA and recipientB are event emittersrecipientA;// Send event to recipient-aemitter
Arrays for recipients
The recipient list, the first argument of
emit, can also be an array:
or an array inside an array:
Close recipient so it doesn't emit more events
var recipientA = emitter;// ...recipientA;