Files
openclaw/src/gateway/server-methods/connect.ts
2026-01-04 04:05:18 +01:00

16 lines
384 B
TypeScript

import { ErrorCodes, errorShape } from "../protocol/index.js";
import type { GatewayRequestHandlers } from "./types.js";
export const connectHandlers: GatewayRequestHandlers = {
connect: ({ respond }) => {
respond(
false,
undefined,
errorShape(
ErrorCodes.INVALID_REQUEST,
"connect is only valid as the first request",
),
);
},
};