Options
All
  • Public
  • Public/Protected
  • All
Menu

Handles a connection to the RabbitMQ server and provides an interface for creating exchanges and queues

Hierarchy

  • EventEmitter
    • Cabbit

Index

Constructors

  • new Cabbit(conn: ConnectionWrapper, passive?: boolean): Cabbit
  • new Cabbit(connectOptions: string | ICabbitOptions, socketOptions?: any): Cabbit

Methods

  • close(): Promise<void>
  • Finish work, close the underlying channel

    Returns Promise<void>

  • Create a named queue and start consuming in the provided middleware

    Type parameters

    • T = any

    Parameters

    Returns Queue<T>

  • Create a temporary queue and start consuming in the provided middleware

    Type parameters

    • T = any

    Parameters

    Returns Queue<T>

  • Set decoder for messages with specified encoding

    Parameters

    Returns void

  • Set decoder for mesages with unknown encoding

    Parameters

    Returns void

  • Set parser for messages with specified MIME type

    Parameters

    Returns void

Generated using TypeDoc