Type Alias AdcpPreTransport
AdcpPreTransport: (
req: IncomingMessage & { rawBody?: string },
res: ServerResponse,
) => Promise<boolean>
Type Declaration
- (
req: IncomingMessage & { rawBody?: string },
res: ServerResponse,
): Promise<boolean> Parameters
- req: IncomingMessage & { rawBody?: string }
- res: ServerResponse
Returns Promise<boolean>
Shape of the preTransport function attached by
createAdcpServerwhensignedRequestsis configured. Returnstrueif the middleware has already sent a response (e.g., 401 on verification failure),falseto continue into MCP dispatch.