Companion

object Companion

Functions

Link copied to clipboard
fun create(configuration: PNConfiguration): PubNub

Initialize and return an instance of the PubNub client.

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

Generates random UUID to use. You should set a unique UUID to identify the user or the device that connects to PubNub.