@Override
public void onClose(EventSourceConnection connection) throws Exception {
pusher.removeConnection(connection);
}
})
.add(new EmbeddedResourceHandler("samples/eventsource/content"))
.start();
System.out.println("EventSource demo running on: " + webServer.getUri());
pusher.pushPeriodicallyOn(webThread);