commonMain.com.pubnub.api.v2.PNConfiguration.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pubnub-kotlin-api-jvm Show documentation
Show all versions of pubnub-kotlin-api-jvm Show documentation
PubNub is a cross-platform client-to-client (1:1 and 1:many) push service in the cloud, capable of broadcasting real-time messages to millions of web and mobile clients simultaneously, in less than a quarter second!
The newest version!
@file:Suppress("EXPECT_ACTUAL_CLASSIFIERS_ARE_IN_BETA_WARNING")
package com.pubnub.api.v2
import com.pubnub.api.UserId
import com.pubnub.api.enums.PNLogVerbosity
expect interface PNConfiguration {
val userId: UserId
val subscribeKey: String
val publishKey: String
val secretKey: String
val authKey: String
val logVerbosity: PNLogVerbosity
}
expect fun createPNConfiguration(
userId: UserId,
subscribeKey: String,
publishKey: String,
secretKey: String? = null,
authKey: String? = null,
logVerbosity: PNLogVerbosity = PNLogVerbosity.NONE,
): PNConfiguration