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