Sha256: 14926ee2b2ab831ed6aa119b7007911de6658e1d1d1e9312e490961e322b1e29
Contents?: true
Size: 567 Bytes
Versions: 9
Compression:
Stored size: 567 Bytes
Contents
var PubnubBus = Class.extend({ init: function(config){ debug_logger.log("initializing pubnub js") this.pubnub = PUBNUB.init({ publish_key : config.publish_key, subscribe_key : config.subscribe_key, ssl : config.ssl }); }, subscribe: function(subscription){ debug_logger.log("subscribing with PubnubBus") debug_logger.log(subscription) this.pubnub.subscribe({ channel : subscription.channel, message : function(m){subscription.callback(m)} }); } }) PubnubBus.third_party_library = 'PUBNUB'
Version data entries
9 entries across 9 versions & 1 rubygems