Skip to content

Latest commit

 

History

History
19 lines (14 loc) · 699 Bytes

pubnub.md

File metadata and controls

19 lines (14 loc) · 699 Bytes

Setting up Rltm.js with PubNub

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.