How we developed Scarlet, a declarative Kotlin library, to make WebSocket integration easier on Android.