Is there a way to pass events from websocket to vi...
# android
z
Is there a way to pass events from websocket to view model without RxJava and callback? RxJava is just to big to implement in my project just for this need. Flow is still not ready for production (is it?) And liveData does not seem like a good fit (no need for lifecycle awareness in this case)
l
z
Yeah but it's deprecated, might as well use RxJava 🤷
i
Flow
itself is stable and certainly ready for production
m
Tried StateFlow in Kotlin coroutines library?
p
We’ve been using https://github.com/Tinder/Scarlet to make Websockets a little easier to handle. (integrated with Coroutines / Flow)
z
It looks like scarlet doesn't support Flow...
Also Scarlet does not seem to be maintained and PR’s are not getting reviewed and merged, so i would not want to integrate that kind of open source to my project