Real-Time Communication in Android
summary
Shows a Kotlin Multiplatform Android app talking to a ketor backend using HTTP, SSE and WebSockets, with a Compose UI offering three buttons for REST, SSE and WebSocket. Demo sends the server time every second over SSE (unidirectional) and uses coroutines, shared flow and an atomic integer to broadcast bidirectional WebSocket messages between two web clients and the Android client. Implements server SSE plugin (ketor 3.0 beta) and works: REST returns a hello, SSE streams ticks, WebSocket sends and receives live updates.
AI-written summary · about
chapters (9)
- 0:00Introduction
- 1:07Real-time protocols overview
- 2:12HTTP vs SSE vs WebSocket
- 3:59Implementation and setup
- 5:46Server SSE and WebSocket setup
- 8:08Client real-time practices
- 10:16UI with Compose Multiplatform
- 11:17Live demo SSE and WebSocket
- 13:30Summary
related talks
44mSeamless mobile real-time communication with WebRTC
31mServer-Sent Events on Android: Real-Time Streams That Surv…
44mSeamless mobile real-time communication with WebRTC
25mKotlin Multiplatform Mobile in production: key takeaways from developing two cross-platform apps
45mThe Adventures of Kotlin And Compose Through the Multiplatform World
41mIt Just Works
40mKotlin Multiplatform. Make your Android App Cross-Platform
20mHow to build a Clean SSEClient Flow
