First!
If you do not call .send() within 30 seconds the connection will be closed. If you want to keep it alive forever, send heartbeat to client.
sseEmitter.send(SseEmitter.event().name("heartbeat").data("keep-alive"));