https://kotlinlang.org logo
#ktor
Title
# ktor
n

napperley

04/16/2019, 11:21 PM
With the Http client are there alternative ways to handle WebSocket events that don't involve streaming?
e

e5l

04/17/2019, 7:35 AM
Hi @napperley, could you tell what model you expect to have?
n

napperley

04/17/2019, 9:37 PM
Currently experimenting with WebSockets to develop a real-time/stateful authentication/authorization APIs (User/AuthSession models). WebSockets work fine with desktop clients (always on network connection). Where WebSockets fall down is with mobile clients (network connection isn't always on) since the WebSocket session can easily close at any time (with little warning), and there would need to be a way to easily establish a session again.
e

e5l

04/18/2019, 8:33 AM
Probably you need something like
connectionAdapter
- coroutine with a channel encapsulating all network issues
2 Views