From: Johannes Dahlström Date: Thu, 30 May 2013 12:42:25 +0000 (+0300) Subject: Flush the output writer in case of SSE transport as well (#11955) X-Git-Tag: 7.1.0~90^2~16 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=29fcadc569c7e45c7d913b18469fbe55b9b7adc3;p=vaadin-framework.git Flush the output writer in case of SSE transport as well (#11955) Change-Id: Id0d82eabab63681b9d01c0312588fdfe1659860f --- diff --git a/server/src/com/vaadin/server/communication/PushHandler.java b/server/src/com/vaadin/server/communication/PushHandler.java index e740db410d..37adc1a108 100644 --- a/server/src/com/vaadin/server/communication/PushHandler.java +++ b/server/src/com/vaadin/server/communication/PushHandler.java @@ -331,9 +331,9 @@ public class PushHandler implements AtmosphereHandler { writer.write(event.getMessage().toString()); switch (resource.transport()) { - case SSE: case WEBSOCKET: break; + case SSE: case STREAMING: writer.flush(); break;