public void onOpen(final Session session, final EndpointConfig endpointConfiguration) {
this.executor = new OrderedExecutor(((UndertowSession)session).getWebSocketChannel().getWorker());
final UndertowSession s = (UndertowSession) session;
boolean partialText = textMessage == null || (textMessage.hasParameterType(boolean.class) && !textMessage.getMessageType().equals(boolean.class));
boolean partialBinary = binaryMessage == null || (binaryMessage.hasParameterType(boolean.class) && !binaryMessage.getMessageType().equals(boolean.class));
if(textMessage != null) {
if(partialText) {
addPartialHandler(s, textMessage);
} else {
if(textMessage.getMaxMessageSize() > 0) {
s.setMaxTextMessageBufferSize((int) textMessage.getMaxMessageSize());
}
addWholeHandler(s, textMessage);
}
}
if(binaryMessage != null) {
if(partialBinary) {
addPartialHandler(s, binaryMessage);
} else {
if(binaryMessage.getMaxMessageSize() > 0) {
s.setMaxBinaryMessageBufferSize((int) binaryMessage.getMaxMessageSize());
}
addWholeHandler(s, binaryMessage);
}
}
if(pongMessage != null) {