code: public Javalin wsBefore(@NotNull String path, @NotNull Consumer<WsHandler> wsHandler) {
          return addWsHandler(WsHandlerType.WS_BEFORE, path, wsHandler);
      }
docs: Adds a WebSocket before handler for the specified path to the instance.