Class ServerSentEventsController
java.lang.Object
org.tailormap.api.controller.ServerSentEventsController
-
Constructor Summary
ConstructorsConstructorDescriptionServerSentEventsController(ch.rasc.sse.eventbus.SseEventBus eventBus, tools.jackson.databind.json.JsonMapper jsonMapper) -
Method Summary
-
Constructor Details
-
ServerSentEventsController
public ServerSentEventsController(@Qualifier("viewerSseEventBus") ch.rasc.sse.eventbus.SseEventBus eventBus, tools.jackson.databind.json.JsonMapper jsonMapper)
-
-
Method Details
-
sse
@GetMapping(path="${tailormap-api.base-path}/events/{clientId}") public org.springframework.web.servlet.mvc.method.annotation.SseEmitter sse(@PathVariable String clientId) -
keepAlive
@Scheduled(fixedRate=60000L) public void keepAlive() throws tools.jackson.core.JacksonException- Throws:
tools.jackson.core.JacksonException
-