aboutsummaryrefslogtreecommitdiff
path: root/juick-server/src/main/java/com/juick/server/api
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-10-25 15:27:39 +0300
committerGravatar Vitaly Takmazov2018-10-25 15:27:39 +0300
commit17675c0588112fb5c97c4e1ef886f316a185baf0 (patch)
tree9a89dda5248c953b0aa381184c357baf33933053 /juick-server/src/main/java/com/juick/server/api
parent8de54c2e88dc3a39364a126a007923dfe68d6d26 (diff)
SSE: do not send message on connect
Diffstat (limited to 'juick-server/src/main/java/com/juick/server/api')
-rw-r--r--juick-server/src/main/java/com/juick/server/api/Service.java3
1 files changed, 0 insertions, 3 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 3cf3ac28..f38078d5 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
@@ -150,9 +150,6 @@ public class Service {
userService.updateLastSeen(visitor);
}
SseEmitter emitter = new SseEmitter(600000L);
- Message service = new Message();
- service.setService(true);
- emitter.send(service);
serverManager.getSessions().add(new ServerManager.EventSession(visitor, emitter));
emitter.onCompletion(() -> endSession(emitter));