Options
All
  • Public
  • Public/Protected
  • All
Menu

Class MultiPushScheduler

Hierarchy

  • MultiPushScheduler

Implements

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

app

scheduler

scheduler: object

Type declaration

selector

selector: IPushSelector

Methods

schedule

  • schedule(reqId: number, route: string, msg: any, recvs: SID[], opts: ScheduleOptions, cb: function): void
  • Schedule how the message to send.

    Parameters

    • reqId: number

      request id

    • route: string

      route string of the message

    • msg: any

      message content after encoded

    • recvs: SID[]

      array of receiver's session id

    • opts: ScheduleOptions

      options

    • cb: function
        • (err?: Error): void
        • Parameters

          • Optional err: Error

          Returns void

    Returns void

start

  • start(): Promise<void>

stop

  • stop(): Promise<void>