Description

init() creates a new PubNub instance method. Security Options can also be specified.  options  is a hash (or similar object, based on platform) which contains initialization parameters, such as your publisher key, encryption options.

Code Example

var pubnub = PUBNUB.init({    
    publish_key : "CUSTOMER_PUBLISH_KEY",    
    subscribe_key : "CUSTOMER_SUBSCRIBE_KEY",    
    secret_key : "CUSTOMER_SECRET_KEY",
    ssl : true,    
    uuid : "customer-8675309"
})

RESTful Example

NOTE : This class method is only available when using the platform-specific client libraries – it does not have any correlation to a server-side RESTful API call.