Skip to content

Commit

Permalink
Notifier vertx - inline example updates
Browse files Browse the repository at this point in the history
  • Loading branch information
lholmquist committed Jun 20, 2013
1 parent 59da0ed commit 7dd9357
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/notifier/adapters/vertx.js
Original file line number Diff line number Diff line change
Expand Up @@ -340,13 +340,19 @@
notifierVertx.clients.client1.subscribe([
{
address: "newChannel",
callback: newCallbackFunction
callback: function(){...}
},
{
address: "anotherChannel",
callback: "anotherChannelCallbackFunction"
callback: function(){ ... }
}
]);
//Subscribe to a channel, but first unsubscribe by adding the reset parameter
notifierVertx.clients.client1.subscribe({
address: "newChannel",
callback: function(){ ... }
}, true );
*/
AeroGear.Notifier.adapters.vertx.prototype.subscribe = function( channels, reset ) {
var bus = this.getBus();
Expand Down

0 comments on commit 7dd9357

Please sign in to comment.