Send a ServerSentEvent from another Method
I'm trying to implement a Server Sent Event Controller for updating my Web Browser Client with the newest Data to display.
This is my current Controller which sends the list of my data every 5 seconds. I want to send a SSE everytime I save my data in another service.
I read about using a channel, but how do I consume it with a Flux?
@GetMapping("/images-sse")
fun getImagesAsSSE(
request: HttpServletRequest
): Flux {
val subdomain = request.serverName.split(".").first()
return...