Enabling TLS (formerly SSL) communication for PubNub clients over HTTPS is as easy as setting a configuration parameter to true. Each SDK has its own API so refer to the SDK docs for the PubNub SDKs that you are using.

Here is sample code for example:


var pubnub = new PubNub({

    subscribeKey: "mySubscribeKey",

    publishKey: "myPublishKey",

    ssl: true

})