import com.vaadin.annotations.VaadinServletConfiguration;
import com.vaadin.annotations.VaadinServletConfiguration.InitParameterName;
import com.vaadin.sass.internal.ScssStylesheet;
+import com.vaadin.server.communication.PushRequestHandler;
import com.vaadin.server.communication.ServletUIInitHandler;
import com.vaadin.shared.JsonConstants;
import com.vaadin.ui.UI;
return u;
}
+ @Override
+ public void destroy() {
+ super.destroy();
+
+ for (RequestHandler handler : getService().getRequestHandlers()) {
+ if (handler instanceof PushRequestHandler) {
+ ((PushRequestHandler) handler).destroy();
+ }
+ }
+ }
+
/**
* Escapes characters to html entities. An exception is made for some
* "safe characters" to keep the text somewhat readable.