private AcceptingChannel<StreamConnection> server;
private Xnio xnio;
private final int port;
public static WebSocketProtocolHandshakeHandler webSocketDebugHandler() {
return new WebSocketProtocolHandshakeHandler(new WebSocketConnectionCallback() {
@Override
public void onConnect(final WebSocketHttpExchange exchange, final WebSocketChannel channel) {
WebSocketLogger.EXTENSION_LOGGER.info("onConnect() ");
channel.getReceiveSetter().set(new DebugExtensionsListener());
channel.resumeReceives();