diff options
author | Vitaly Takmazov | 2018-10-16 15:18:18 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2018-10-16 15:18:18 +0300 |
commit | 524f97bd9cea9a005d72a0680309a028b736288f (patch) | |
tree | 82017f1b995577f35b53f795f422f1c4759e1d45 /juick-server/src/main/java | |
parent | cdde4b55c74e7c035f1c8cf8a9c4d5b47f494076 (diff) |
SSE: 10 minutes timeout
Diffstat (limited to 'juick-server/src/main/java')
-rw-r--r-- | juick-server/src/main/java/com/juick/server/api/Service.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/juick-server/src/main/java/com/juick/server/api/Service.java b/juick-server/src/main/java/com/juick/server/api/Service.java index ecfc6957..c65d89a1 100644 --- a/juick-server/src/main/java/com/juick/server/api/Service.java +++ b/juick-server/src/main/java/com/juick/server/api/Service.java @@ -140,7 +140,7 @@ public class Service { @GetMapping("/api/events") public SseEmitter handle() throws IOException { logger.info("{} connected", UserUtils.getCurrentUser().getName()); - SseEmitter emitter = new SseEmitter(86400000L); + SseEmitter emitter = new SseEmitter(600000L); Message service = new Message(); service.setService(true); emitter.send(service); |