handshaker.close(ctx.channel(), (CloseWebSocketFrame) wsFrame);
return;
}
if (wsFrame instanceof PingWebSocketFrame) {
wsFrame.content().retain();
ctx.channel().writeAndFlush(new PongWebSocketFrame(wsFrame.content()));
return;
}
if (!(wsFrame instanceof TextWebSocketFrame)) {
throw new UnsupportedOperationException(String.format("%s frame types not supported",
wsFrame.getClass().getName()));