aboutsummaryrefslogtreecommitdiff
path: root/juick-server/src/main/java/com
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-10-16 15:18:18 +0300
committerGravatar Vitaly Takmazov2018-10-16 15:18:18 +0300
commit524f97bd9cea9a005d72a0680309a028b736288f (patch)
tree82017f1b995577f35b53f795f422f1c4759e1d45 /juick-server/src/main/java/com
parentcdde4b55c74e7c035f1c8cf8a9c4d5b47f494076 (diff)
SSE: 10 minutes timeout
Diffstat (limited to 'juick-server/src/main/java/com')
-rw-r--r--juick-server/src/main/java/com/juick/server/api/Service.java2
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);