signaling-js
v0.1.1
Published
A minimalistic messaging system for Node.js and the browser
Downloads
2
Maintainers
Readme
Signaling
Installation
npm install signaling-js --save
Usage
var signal = new signaling.Signal()
var context = {
receiver: function () {
console.log.apply(console, arguments)
}
}
var disconnect = signal.connect(receiver, context)
signal.emit('any', 'arbitrary', 'argument') // outputs: any arbitrary argument
disconnect()