PubNub is a cloud realtime service. You only need to supply your PubNub publish and subscribe keys. PubNub will handle scaling, message delivery, etc.
You can get your publish and subscribe keys from the pubnub admin panel.
let user = rltm({
service: 'pubnub',
config: {
publishKey: 'YOUR_PUBNUB_PUBLISH_KEY',
subscribeKey: 'YOUR_PUBNUB_SUBSCRIBE_KEY'
}
});
You can read about more config options on the official PubNub Documentation.
This service exposes PubNub only features within user.pubnub
or room.pubnub
.