|
@@ -15,13 +15,13 @@ import java.io.IOException;
|
|
|
|
|
|
@Controller
|
|
|
@RequestMapping("/conference")
|
|
|
-@NoAPIResponse
|
|
|
+//@NoAPIResponse
|
|
|
public class SSEController {
|
|
|
|
|
|
@Resource
|
|
|
private SSEService sseService;
|
|
|
|
|
|
- @GetMapping(path = "/photo-sse/{id}", produces = MediaType.TEXT_EVENT_STREAM_VALUE)
|
|
|
+ /*@GetMapping(path = "/photo-sse/{id}", produces = MediaType.TEXT_EVENT_STREAM_VALUE)
|
|
|
@NoAPIResponse
|
|
|
public SseEmitter handleSse(@PathVariable("id") Long id) throws IOException {
|
|
|
String uuid = UUID.fastUUID( ).toString( );
|
|
@@ -30,5 +30,5 @@ public class SSEController {
|
|
|
sseEmitter.send(SseEmitter.event().name("hello").data("hello"));
|
|
|
sseEmitter.onCompletion(() -> sseService.complate(id, uuid));
|
|
|
return sseEmitter;
|
|
|
- }
|
|
|
+ }*/
|
|
|
}
|