kotlin-coroutines-okhttp icon indicating copy to clipboard operation
kotlin-coroutines-okhttp copied to clipboard

Suspendable extensions for web sockets

Open mykola-dev opened this issue 7 years ago • 1 comments

OkHttp supports web sockets since 3.5. It would be nice to have some suspendable websockets helpers too

mykola-dev avatar Nov 14 '17 13:11 mykola-dev

Hi. I have a couple experimental implementation, but after playing with it I'm not sure about correct API. The most idiomatic way is to wrap each response to sealed class with state and send it a channel, but it also adds some overhead. Some other implementations actually not so much better than standard OkHttp API. Do you have some ideas about API that would be useful for you?

gildor avatar Jun 27 '18 03:06 gildor