Join Slack
Powered by
Hello guys! I'm trying to use `Server-Sent Events`...
# ktor
j
Júlio Santos
01/20/2021, 12:25 PM
Hello guys! I'm trying to use
Server-Sent Events
with
Ktor
, does anyone have an example? Because I didn't find anything enlightening. I can send the event, but I can't consume it.
a
altavir
01/26/2021, 11:43 AM
The client currently does not support SSE (see
https://youtrack.jetbrains.com/issue/KTOR-505
) I've created my own simple implementation here:
https://github.com/altavir/ktor-client-sse/blob/main/src/commonMain/kotlin/ru/mipt/npm/ktor/sse/readSse.kt
, but it does not cover the whole SSE specification and I am non a specialist in this field.
🤔 1
j
Júlio Santos
01/30/2021, 3:27 AM
Sorry to answer now
@altavir
! Thank you very much for your help
6
Views
Open in Slack
Previous
Next