Libraries
    Preparing search index...

    Interface SubscriptionMetadata

    Snapshot of all configuration set on a SubscriptionBuilder. Used by the server for WebSocket upgrade handling and by documentation generators for AsyncAPI / OpenAPI spec output.

    interface SubscriptionMetadata {
        authRoles: readonly string[] | null;
        basePath: string;
        deprecated: boolean;
        description: string | null;
        externalDocs: { description?: string; url: string } | null;
        headerSchema: ObjectSchemaBuilder<any, any, any, any, any, any, any> | null;
        incomingSchema: SchemaBuilder<any, any, any, any, any> | null;
        operationId: string | null;
        outgoingSchema: SchemaBuilder<any, any, any, any, any> | null;
        pathTemplate: RoutePath;
        protocol: "subscription";
        querySchema: ObjectSchemaBuilder<any, any, any, any, any, any, any> | null;
        serviceSchemas:
            | Record<string, SchemaBuilder<any, any, any, any, any>>
            | null;
        summary: string | null;
        tags: readonly string[];
    }
    Index

    Properties

    authRoles: readonly string[] | null
    basePath: string
    deprecated: boolean
    description: string | null
    externalDocs: { description?: string; url: string } | null
    headerSchema: ObjectSchemaBuilder<any, any, any, any, any, any, any> | null
    incomingSchema: SchemaBuilder<any, any, any, any, any> | null
    operationId: string | null
    outgoingSchema: SchemaBuilder<any, any, any, any, any> | null
    pathTemplate: RoutePath
    protocol: "subscription"

    Always 'subscription'. Distinguishes from HTTP endpoint metadata.

    querySchema: ObjectSchemaBuilder<any, any, any, any, any, any, any> | null
    serviceSchemas: Record<string, SchemaBuilder<any, any, any, any, any>> | null
    summary: string | null
    tags: readonly string[]