pubnub connection class