https://kotlinlang.org logo
#kotlin-fuel
Title
# kotlin-fuel
d

Derk-Jan Karrenbeld

11/01/2018, 4:59 PM
THe boilerplate is just this:
Copy code
override fun deserialize(response: Response): Unit {
  response.body().toStream().bufferedReader().forEachLine { line ->
                launch {
                    val msg = ApiMessage.decode(line)
                    if (msg.event != "api_connect") {
                        send(msg)
                    }
                }
            }
}