Quantcast
Channel: Akka Libraries - Discussion Forum for Akka technologies
Viewing all articles
Browse latest Browse all 1369

Akka HTTP: mapRouteResult with SSE

$
0
0

@gnapoli wrote:

It is there a way to intercept the completion of a route that complete with a source, in particular, when using SSE?
Taking as example a route like this one https://doc.akka.io/docs/akka-http/10.0.11/scala/http/sse-support.html, i would like to do some operations when a client disconnects/nobody is consuming messages from the source.

I have tried the directives mapRouteResult and mapRouteResultFuture, but they doesn’t work fine in this particular case, intercepting the start of the streaming, rather than the end. Any idea?

Posts: 5

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 1369

Trending Articles