Menu

#Janzeer

1 post

Feed
1 of 1 post
Turn a callback WebSocket feed into a Kotlin Flow with callbackFlow (with a live feed to try it on)
📰
0Read More

Turn a callback WebSocket feed into a Kotlin Flow with callbackFlow (with a live feed to try it on)

DEV Community: kotlin·Malek·2 days ago
#UDWI57hO
#devtokotlin#devto#dev#block#flow

Wrapping a push API in callbackFlow, cleaning up in awaitClose, and why the Flow should be cold. Runnable against a public feed that needs no API key.

15s