~/talk

Taming Websocket with Scarlet

Talkat Conference for Kotliners 2018 · 2018-06-15..06-16· [kotlin, android]
linkedin:zhxnlai
slides:none on file

Claims that WebSocket integration drops to 10 lines of code, implemented as a Retrofit-like Kotlin library called Scarlet that uses OkHttp WebSocket and a plugin system for message adapters (Moshi, protobuf), stream adapters (RxJava Flowable, coroutines), lifecycle and retry strategies. Shows concrete API: three annotated interface methods for subscribe/open/receive, a state-machine DSL for connection states, mockwebserver support for integration tests, production use at Tinder for six months across chat, match and typing features.

AI-written summary · about

  1. 0:00Taming WebSocket with Scarlet
  2. 2:18WebSocket vs REST
  3. 2:53Bitcoin Trading
  4. 4:56GDAX Ticker REST API
  5. 6:11Polling GDAX Ticker
  6. 7:01GDAX Ticker WebSocket API
  7. 7:27What's wrong with WebSocket?
  8. 9:01Why Scarlet?
  9. 10:04Getting Started with Scarlet
  10. 14:29Scarlet Plugins
  11. 16:51WebSocketFactory (Roadmap)
  12. 18:22StreamAdapterFactory (Roadmap)
  13. 18:44Maintaining Scarlet
  14. 18:57Supporting API Changes
  15. 19:37Changing WebSocket Implementation
  16. 19:48Changing JSON Library
  17. 20:01Supporting Kotlin Coroutine
  18. 20:28Scarlet Reliability
  19. 20:56WebSocket on Android
  20. 23:24State Management in Scarlet
  21. 24:15What makes Scarlet testable?
  22. 24:48State Machine DSL
  23. 26:35Testing State Machine
  24. 26:55State Machine in Scarlet
  25. 27:27State Management Plugins
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.