Join Slack
Powered by
How do I read a text/event-stream content type? In...
# ktor
z
zt
12/06/2022, 1:52 AM
How do I read a text/event-stream content type? In my API its being used as a sort of progress indicator. So each newline contains some data. I need to get the last line in the stream
c
Chris Fillmore
12/06/2022, 2:09 AM
I don’t think Ktor supports this out of the box. However, you can do this with OkHttp directly
https://square.github.io/okhttp/3.x/okhttp-sse/index-all.html
z
zt
12/06/2022, 3:46 AM
Just found this,
https://youtrack.jetbrains.com/issue/KTOR-505
51
Views
Open in Slack
Previous
Next