Thanh nguyen
01/03/2025, 4:50 AM@OptIn(ExperimentalForeignApi::class)
actual object PrivatePusherPlatform {
@OptIn(ExperimentalForeignApi::class)
private lateinit var pusher: Pusher
fun initPusher(){
val ocAuthMethod = OCAuthMethod(secret = "http://" + getApiHost() + "/Noti/PusherAuthoriz")
val ocPusherHost = OCPusherHost(cluster = "ap5")
val options = PusherClientOptions()
options.setAuthMethodWithAuthMethod(ocAuthMethod)
options.setocPusherHost()// not found.
Pusher
val pusher = Pusher(key = "22345333",options = options)
pusher.connect()
}
}
I can't find the method set cluster for PusherClientOptions.