TPS is a project mainly written in JavaScript, it's free.
Tab pub/sub. Allows JavaScript apps to communicate between multiple open tabs.
TPS (or tab pub/sub) is a simple way to communicate state changes between multiple open tabs.
Tps.subscribe(channel, callback)
- Subscribe to a channel. Everytime somebody
publishes something to channel
(in a different browser tab), callback
will
be called with the published data.
Tps.publish(channel, data)
- Publish some data to a channel. All subscribers
(on other tabs) will be called back with data
. Data can be anything, channel
must be a string.
This is provided under the very permissive MIT license.