express-yaschema-ws-api-handler
    Preparing search index...

    Type Alias WsApiRequestHandler<RequestCommandsT, ResponseCommandsT, CommandNameT, QueryT, ExtraArgsT>

    WsApiRequestHandler: (
        args: {
            connectionId: string;
            express: { next: NextFunction; req: Request; ws: WebSocket };
            extras: ExtraArgsT;
            input: RequestCommandsT[CommandNameT]["valueType"];
            output: WsApiResponders<ResponseCommandsT>;
            query: QueryT;
        },
    ) => Promise<void>

    Type Parameters

    • RequestCommandsT extends AnyCommands
    • ResponseCommandsT extends AnyCommands
    • CommandNameT extends keyof RequestCommandsT & string
    • QueryT extends AnyQuery
    • ExtraArgsT extends Record<string, any> = Record<string, never>

    Type declaration