1.0.2 • Published 5 years ago

js-intercom v1.0.2

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

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)

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago