ConnectionCallback

Receives callbacks from an explicit call to connect.

Functions

Link copied to clipboard
abstract fun onConnected()
Called when connection attempt succeeds or is already open when connect is called.
Link copied to clipboard
abstract fun onError(@NotNull t: @NotNull Throwable)
Called when the connection attempt has failed.