pubnub integration for Chat