2425262728293031
public class WebSocketResourceDemoPage extends WebPage { public WebSocketResourceDemoPage() { WebSocketChart chartPanel = new WebSocketChart("chartPanel"); chartPanel.add(new BaseWebSocketBehavior(ChartWebSocketResource.NAME)); add(chartPanel); }