Spaces:
Paused
Paused
File size: 359 Bytes
fb4d8fe | 1 2 3 4 5 6 7 8 9 10 11 12 13 | import type { GatewayRequestHandlers } from "./types.js";
import { ErrorCodes, errorShape } from "../protocol/index.js";
export const connectHandlers: GatewayRequestHandlers = {
connect: ({ respond }) => {
respond(
false,
undefined,
errorShape(ErrorCodes.INVALID_REQUEST, "connect is only valid as the first request"),
);
},
};
|