@cloudamqp/amqp-client
    Preparing search index...

    Interface AMQPSessionLike

    Minimum surface a mock session must expose.

    interface AMQPSessionLike {
        closed: boolean;
        directExchange(
            name?: string,
            options?: ExchangeOptions,
        ): Promise<AMQPExchangeLike>;
        exchange(
            name: string,
            type: string,
            options?: ExchangeOptions,
        ): Promise<AMQPExchangeLike>;
        fanoutExchange(
            name?: string,
            options?: ExchangeOptions,
        ): Promise<AMQPExchangeLike>;
        headersExchange(
            name?: string,
            options?: ExchangeOptions,
        ): Promise<AMQPExchangeLike>;
        queue(name: string, options?: QueueOptions): Promise<AMQPQueueLike>;
        stop(reason?: string): Promise<void>;
        topicExchange(
            name?: string,
            options?: ExchangeOptions,
        ): Promise<AMQPExchangeLike>;
    }
    Index

    Properties

    closed: boolean

    Methods

    • Parameters

      • Optionalreason: string

      Returns Promise<void>