Hello guys! I'm trying to use `Server-Sent Events`...
# ktor
j
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
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
Sorry to answer now @altavir! Thank you very much for your help