Thanh nguyen
@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() } }
A modern programming language that makes developers happier.