Hey, I found on youtrack that there appears to be plugins for sse for both server and client in 3.0.0, is it written anywhere which eap artifacts are needed to experiment with this? Sorry if it’s obvious and I couldn’t find it
a
Aleksei Tirman [JB]
09/04/2023, 5:21 AM
You can check out the SSE plugins (
io.ktor:ktor-server-sse
and
io.ktor:ktor-client-core
) using the
3.0.0-eap-786
version.
c
cah
09/04/2023, 9:01 AM
Amazing thanks
cah
09/20/2023, 1:19 AM
I can’t seem to get a combination of
io.ktor:ktor-server-sse:3.0.0-eap-786
and
io.ktor.plugin
to run, any advice?
Also on another note we use
Resources
for all other endpoints - is it possible to use it with
sse
to avoid having to define the path manually?
Thanks again
a
Aleksei Tirman [JB]
09/20/2023, 5:45 AM
Unfortunately, the current version of the Ktor Gradle plugin is incompatible with the EAP version.
You can use the constructor of the
SSEServerContent
class to send SSE events in the handler of a resource route.