js-intercom
v1.0.2
Published
communication bus : pub/sub
Downloads
2
Readme
install :
npm install intercom
usage :
subscriber :
function someFunction(channelNameString,dataObject){
...
}
intercom.subscribe("some.channel.name",someFunction);
publisher :
intercom.publish("some.chanel.name",someData)
When invoking intercom publish Intercom will dispatch the someData
object through a call to all the channel subscribers.
the call is done out of sync (@ 1ms intervals)