Has anyone implemented the PusherSwift library (Pu...
# multiplatform
t
Has anyone implemented the PusherSwift library (Pusher channel) for iOS Compose Multiplatform?
Copy code
@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.