GatewayClientImpl

Private gateway client.

Functions

Link copied to clipboard
suspend fun bind()

Bind to the gateway to be able to communicate with it.

Link copied to clipboard
fun bindAutomatically(onBindSuccessful: () -> Unit = {}, onUnbind: () -> Unit = {}, onBindFailure: (GatewayBindingException) -> Unit)

The app will automatically bind when the application is in the foreground, and unbind when the app is moved to the background. Only call this method once.

Link copied to clipboard

Receive messages from the gateway.

Link copied to clipboard
suspend fun sendMessage(message: OutgoingMessage)
Link copied to clipboard
fun unbind()

Unbind from the gateway.