Implements

Constructors

  • Parameters

    • channel: Channel<Uint8Array>
    • session: Session
    • OptionalcloseCallback: (() => Promise<void>)
        • (): Promise<void>
        • Returns Promise<void>

    Returns MessageChannel

Properties

channel: Channel<Uint8Array>
closed: boolean
session: Session

Accessors

  • set closeCallback(callback): void
  • Parameters

    • callback: (() => Promise<void>)
        • (): Promise<void>
        • Returns Promise<void>

    Returns void

  • get isReliable(): boolean
  • Is the underlying transport reliable?

    Returns boolean

  • get maxPayloadSize(): number
  • Max Payload size of the exchange which bases on the maximum payload size of the channel. The full encoded matter message payload sent here can be as huge as allowed by the channel.

    Returns number

  • get name(): string
  • Channel name

    Returns string

Methods

  • Method to close the channel

    Returns Promise<void>

  • Method to send data to the remote endpoint

    Parameters

    Returns Promise<void>