From 17675c0588112fb5c97c4e1ef886f316a185baf0 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Thu, 25 Oct 2018 15:27:39 +0300 Subject: SSE: do not send message on connect --- juick-server/src/main/java/com/juick/server/api/Service.java | 3 --- 1 file changed, 3 deletions(-) (limited to 'juick-server/src/main/java/com/juick/server') 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)); -- cgit v1.2.3