13 lines
359 B
TypeScript
Raw Normal View History

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