@Override
        public void channelRead(ChannelHandlerContext ctx, Object msg) {
            if ((msg instanceof HttpRequest) && ((HttpRequest) msg).uri().endsWith(websocketPath)) {
                ReferenceCountUtil.release(msg);
            }
        }
Handler that will drop requests to the WebSocket path.
gremlin-tools/gremlin-socket-server/src/main/java/org/apache/tinkerpop/gremlin/socket/server/TestHandlers.java