Obyte.kt is a multi-platform Kotlin library to communicate with hub nodes in the Obyte cryptocurrency network.
This project is still in a very early alpha stage.
Example usage:
fun main() = runBlocking {
ObyteClient().connect(ObyteTestHub) {
on<Request.Subscribe> { request ->
subscribe(request.tag)
launch {
while (true) {
delay(15000)
heartbeat()
}
}
}
}
}
See more examples in obyte.kt-samples