Class SseController

java.lang.Object
com.aquima.web.api.controller.v2.AbstractBaseController
com.aquima.web.api.controller.v2.SseController

@ServerContext @RestController("v2ApiSseController") public class SseController extends AbstractBaseController
This controller provides a Server Sent Event endpoint for messages pushed to the SsePushChannel
  • Constructor Details

    • SseController

      @Autowired public SseController(com.blueriq.component.api.push.channel.PushChannelRetriever pushChannel)
  • Method Details

    • getEvents

      @GetMapping(path="/api/v2/push-messages") public reactor.core.publisher.Flux<org.springframework.http.codec.ServerSentEvent<String>> getEvents(javax.servlet.http.HttpSession httpSession, @RequestParam(name="Last-Event-ID",required=false) String lastEventId)