@RestController public class SseController extends Object
| Constructor and Description |
|---|
SseController(Map<String,org.springframework.web.servlet.mvc.method.annotation.SseEmitter> sseEmitters) |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.web.servlet.mvc.method.annotation.SseEmitter |
handle(String sessionId)
Endpoint to create SSE-emitter.
|
@CrossOrigin
@GetMapping(path="/sse/connect",
produces="text/event-stream")
public org.springframework.web.servlet.mvc.method.annotation.SseEmitter handle(@RequestParam
String sessionId)
throws IOException
sessionId - request identifierIOExceptionCopyright © 2025. All rights reserved.