Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface PresenceChannel

Hierarchy

Index

Properties

eventFormatter

eventFormatter: EventFormatter

The event formatter.

name

name: string

The name of the channel.

options

options: any

Channel options.

Methods

here

  • Register a callback to be called anytime the member list changes.

    Parameters

    • callback: function
        • (users: any[]): void
        • Parameters

          • users: any[]

          Returns void

    Returns PresenceChannel

joining

  • Listen for someone joining the channel.

    Parameters

    • callback: function
        • (user: any): void
        • Parameters

          • user: any

          Returns void

    Returns PresenceChannel

leaving

  • Listen for someone leaving the channel.

    Parameters

    • callback: function
        • (user: any): void
        • Parameters

          • user: any

          Returns void

    Returns PresenceChannel

listen

  • listen(event: string, callback: function): Channel
  • Listen for an event on the channel instance.

    Parameters

    • event: string
    • callback: function
        • (event: any): void
        • Parameters

          • event: any

          Returns void

    Returns Channel

listenForWhisper

  • listenForWhisper(event: string, callback: function): Channel

notification

  • notification(callback: function): Channel
  • Listen for a notification on the channel instance.

    Parameters

    • callback: function
        • (notification: any): void
        • Parameters

          • notification: any

          Returns void

    Returns Channel

whisper