js-intercom

1.0.2 • Public • Published

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)

Readme

Keywords

none

Package Sidebar

Install

npm i js-intercom

Weekly Downloads

3

Version

1.0.2

License

MIT

Unpacked Size

3.1 kB

Total Files

7

Last publish

Collaborators

  • alfu32