Options
All
  • Public
  • Public/Protected
  • All
Menu

Cluster utility for working with the thread from the master process

Hierarchy

  • ThreadComms
    • Cluster

Index

Constructors

constructor

  • new Cluster(id: string, master: Master, fileName?: string, custom?: boolean): Cluster

Properties

custom

custom: boolean = false

dying

dying: boolean = false

Whether or not the Cluster shouldn't restart

fileName

fileName: string = ...

id

id: string

master

master: Master

spawned

spawned: boolean = false

Whether or not the cluster has been spawned before

started

started: boolean = false

Whether or not the Cluster is currently online

Methods

_emit

  • _emit<K>(event: K, data: ThreadCommsEventEmitter[K], resolve: ResolveFunction<K>): boolean

eval

  • eval(code: string): Promise<any[]>

getGuild

  • getGuild(id: string): Promise<APIGuild>

kill

  • kill(): void

logAs

  • logAs(msg: string): void

register

  • register(comms: Worker | MessagePort): void

restart

  • restart(): void

restartShard

  • restartShard(id: number): void

sendCommand

spawn

  • spawn(): Promise<void>

start

  • start(): Promise<undefined | {}>

tell

Legend

  • Constructor
  • Property
  • Method
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Property
  • Static method

Generated using TypeDoc