How to expose a Server Sent Events based REST API in Lagom?

Are there any examples on how to expose SSE based REST API in Lagom?? All I could find is SSE support in Akka.

Please help.

Hi @codingkapoor ,

there’s no support for SSE in Lagom’s descriptor. You can use a streaming API call on the descriptor and only use the response Source[Reply,_].
alternatively, you can embed an Akka HTTP server and open a different port so Lagom listens on port 8080 and the Akka HTTP instance listens on port 8081 but that’s probably overkill.

Cheers,