melbot / src /gateway /server-methods /connect.ts
amos-fernandes's picture
Upload 4501 files
3a65265 verified
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"),
);
},
};