if (config == null || config.getMaxFramesize() == 0) {
p.replace("decoder", "jwsdecoder", new WebSocketFrameDecoder(JWebSocketCommonConstants.DEFAULT_MAX_FRAME_SIZE));
} else {
p.replace("decoder", "jwsdecoder", new WebSocketFrameDecoder(config.getMaxFramesize()));
}
p.replace("encoder", "jwsencoder", new WebSocketFrameEncoder());
//if the WebSocket connection URI is wss then start SSL TLS handshaking
if (req.getUri().startsWith("wss:")) {
// Get the SslHandler in the current pipeline.
final SslHandler sslHandler = ctx.getPipeline().get(SslHandler.class);