Options
All
  • Public
  • Public/Protected
  • All
Menu

Class PusherConnector

Hierarchy

Index

Constructors

constructor

Properties

channels

channels: any

All of the subscribed channel names.

options

options: Config

Connector options.

pusher

pusher: Pusher

The Pusher instance.

Methods

channel

connect

  • connect(): void
  • Create a fresh connection.

    Returns void

disconnect

  • disconnect(): void
  • Disconnect from the Echo server.

    Returns void

leave

  • leave(channel: string): void
  • Leave the given channel.

    Parameters

    • channel: string

    Returns void

listen

  • listen(name: string, event: string, callback: pusher.EventCallback): PusherChannel
  • Listen for an event on a channel instance.

    Parameters

    • name: string
    • event: string
    • callback: pusher.EventCallback

    Returns PusherChannel

presenceChannel

privateChannel

socketId

  • socketId(): string
  • Get the socket_id of the connection.

    Returns string