Trying to integrate pubnub
Fixed the pubnub integration