Skip to content

italotech/hoodie-plugin-pubsub

Repository files navigation

hoodie-plugin-pubsub

Build Status Dependencies devDependency Status

Dependencies

  hoodie install hoodie-plugin-pubsub

for cordova/phonegap users

  bower install hoodie-plugin-pubsub

Setup client

 <script src="/_api/_files/hoodie.js"></script>

for cordova/phonegap users

  <script src="<bowerdir>/hoodie/dist/hoodie.js"></script>
  <script src="<bowerdir>/hoodie-plugin-pubsub/hoodie.pubsub.js"></script>

API

hoodie.pubsub.subscribe(hoodieId, type)

hoodie.pubsub.unsubscribe(hoodieId, type)

hoodie.pubsub.subscribers()

hoodie.pubsub.subscriptions()