问下netty的webSocket下的new WebSocketServerProtocolHandler("/ws", null, true, 65536 * 10)

new WebSocketServerProtocolHandler("/ws", null, true, 65536 * 10)没起到url的限制作用咋回事啊我把/ws改成其他的,我的链接照常访问成功

    @Override
    protected void initChannel(SocketChannel ch) throws Exception {
        //入参说明: 读超时时间、写超时时间、所有类型的超时时间、时间格式
        ch.pipeline().addLast(new IdleStateHandler(0, 0, idleTime, TimeUnit.SECONDS));
        // 因为基于 HTTP 协议,使用 http 的编码解码器
        ch.pipeline().addLast(new HttpServerCodec());
        //以块的方式来写的处理器
        ch.pipeline().addLast(new ChunkedWriteHandler());
        // 因为 http 数据在传输过程中时分段的,HttpObjectAggregator 就可以将多个段聚合
        ch.pipeline().addLast(new HttpObjectAggregator(8192));
        //ch.pipeline().addLast(chargerNettyServerOutBoundHandler);
        ch.pipeline().addLast(chargerNettyServerInBoundHandler);
        // websocket 数据是以帧(frame)的形式传递
        // webSocketFrame 下面有六个子类
        // WebSocketServerProtocolHandler:将 http 协议升级为 ws 协议,保持长连接
        ch.pipeline().addLast(new WebSocketServerProtocolHandler("/ws", null, true, 65536 * 10));
    }
}