Sha256: 878042d5c53a8462e9d0b92ab72d5ccab84a2d7828ebee68f0e926c8b9d12550
Contents?: true
Size: 416 Bytes
Versions: 3
Compression:
Stored size: 416 Bytes
Contents
var PubnubBus = Class.extend({ init: function(config){ this.pubnub = PUBNUB.init({ publish_key : config.publish_key, subscribe_key : config.subscribe_key, ssl : config.ssl }); }, subscribe: function(subscription){ this.pubnub.subscribe({ channel : subscription.channel, backfill: true, message : function(m){subscription.callback(m)} }); } })
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
foreign_office-0.1.1 | app/assets/javascripts/pubnub_bus.js |
foreign_office-0.1.0 | app/assets/javascripts/pubnub_bus.js |
foreign_office-0.0.7 | app/assets/javascripts/pubnub_bus.js |