create

fun create(configuration: PNConfiguration): PubNub

Initialize and return an instance of the PubNub client.

Return

the PubNub client

Parameters

configuration

the configuration to use


fun create(userId: UserId, subscribeKey: String, builder: PNConfiguration.Builder.() -> Unit): PubNub