Options
All
  • Public
  • Public/Protected
  • All
Menu

Class PushSchedulerComponent

Hierarchy

  • PushSchedulerComponent

Implements

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

Private app

name

name: string = "__pushScheduler__"

scheduler

scheduler: IPushScheduler

Methods

afterStart

  • afterStart(cb: function): void

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

stop

  • stop(force: boolean, cb: function): void