Files
Moltbot/src/gateway/server-methods/connect.ts
Peter Steinberger c379191f80 chore: migrate to oxlint and oxfmt
Co-authored-by: Christoph Nakazawa <christoph.pojer@gmail.com>
2026-01-14 15:02:19 +00:00

13 lines
359 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"),
);
},
};