Constructors

Properties

Methods

Constructors

Properties

name: string
protectedChannels: string[]

Methods

  • Used to send a Hub event.

    Type Parameters

    • Channel extends "auth"

    Parameters

    • channel: Channel

      The channel on which the event will be broadcast

    • payload: HubPayload<AmplifyEventData[Channel]>

      The HubPayload

    • Optional source: string

      The source of the event; defaults to ''

    • Optional ampSymbol: symbol

      Symbol used to determine if the event is dispatched internally on a protected channel

    Returns void

  • Parameters

    Returns void