<div dir="ltr">Hi,<div><br></div><div>I'm trying to run the websockets example with undertow-core-1.0.0.Beta18 but it doesn't seem to work. </div><div>I simplified the code:</div><div><br></div><div><div>public class WebSocketServer {</div>
<div> public static void main(final String[] args) {</div><div> Undertow.builder().addListener(8080, "localhost").setHandler(path().addPath("/myapp", websocket(new WebSocketConnectionCallback() {</div>
<div> @Override</div><div> public void onConnect(WebSocketHttpExchange exchange, WebSocketChannel channel) {</div><div> System.out.println("**** onConnect ********");</div><div>
channel.getReceiveSetter().set(new AbstractReceiveListener() {</div><div> @Override</div><div> protected void onFullTextMessage(WebSocketChannel channel, BufferedTextMessage message) {</div>
<div> System.out.println("**** onFullTextMessage ********");</div><div> WebSockets.sendText(message.getData(), channel, null);</div><div> }</div><div>
});</div><div> }</div><div> }))).build().start();</div><div> }</div><div>}</div></div><div><br></div><div>Although the "OnConnect" handler is called, the "onFullTextMessage" is never called.</div>
<div>Do someone know why ?</div><div><br></div><div>Thanks</div><div>Eitan</div><div><div><br></div></div></div>