Class AMQPWebSocketClient

WebSocket client for AMQP 0-9-1 servers

Hierarchy

  • AMQPBaseClient
    • AMQPWebSocketClient

Constructors

Properties

blocked?: string
bufferPool: AMQPView[] = []
channelMax: number = 0
channels: AMQPChannel[]
closePromise?: [((value?) => void), ((err) => void)]

Type declaration

    • (value?): void
    • Parameters

      • Optional value: void

      Returns void

Type declaration

    • (err): void
    • Parameters

      • err: Error

      Returns void

closed: boolean = true
connectPromise?: [((conn) => void), ((err) => void)]

Type declaration

    • (conn): void
    • Parameters

      • conn: AMQPBaseClient

      Returns void

Type declaration

    • (err): void
    • Parameters

      • err: Error

      Returns void

frameBuffer: Uint8Array
frameMax: number
framePos: number = 0
frameSize: number = 0
heartbeat: number
logger: undefined | null | Logger = console
name?: string
onUpdateSecretOk?: ((value?) => void)

Type declaration

    • (value?): void
    • Parameters

      • Optional value: void

      Returns void

onerror: ((error) => void)

Type declaration

    • (error): void
    • Parameters

      Returns void

password: string
platform?: string
socket?: WebSocket
textEncoder: TextEncoder = ...

Used for string -> arraybuffer when publishing

url: string
username: string
vhost: string

Methods

  • Gracefully close the AMQP connection

    Parameters

    • Optional reason: string = ""

      might be logged by the server

    • code: number = 200

    Returns Promise<void>

  • Establish a AMQP connection over WebSocket

    Returns Promise<AMQPBaseClient>

  • Parameters

    • bytes: Uint8Array

      to send

    Returns Promise<void>

    fulfilled when the data is enqueued

  • Parameters

    • newSecret: string
    • reason: string

    Returns Promise<unknown>

Generated using TypeDoc