phoenix
    Preparing search index...

    Class PushInternal

    Initializes the Push.

    The Channel

    The event, for example "phx_join"

    The payload, for example {user_id: 123}

    The push timeout in milliseconds

    Index

    Constructors

    Methods

    Constructors

    • Internal

      Parameters

      • channel: Channel
      • event: string
      • payload: any
      • timeout: number

      Returns Push

    Methods

    • Register a callback for a specific response status

      Parameters

      • status: string
      • callback: (response: any) => void

      Returns Push

    • Resend the push with a new timeout

      Parameters

      • timeout: number

      Returns void

    • Send the push

      Returns void