adapter to pubnub