Skip to main content

ClusterEventEmitter

Extends EventEmitter

Recieves events from primary node about other clusters.

Constructor

new ClusterEventEmitter();

Events

Cluster_Death

Sent when a cluster dies.

PARAMETERTYPEOPTIONALDEFAULTDESCRIPTION
deathClusterDeath--Death Info.

Cluster_Error

Sent when a cluster errors out. Usually sent when you write bas code that throws an error.

PARAMETERTYPEOPTIONALDEFAULTDESCRIPTION
errorClusterError--Error Info.

Cluster_Warn

Sent when a cluster encounters a warn usually somthing to do with DJS.

PARAMETERTYPEOPTIONALDEFAULTDESCRIPTION
warnClusterWarn--Warn Info.

Cluster_Ready

Sent when a cluster becomes ready.

PARAMETERTYPEOPTIONALDEFAULTDESCRIPTION
readyClusterReady--Ready Info.

Shard_Ready

Sent when a shard on a cluster becomes ready.

PARAMETERTYPEOPTIONALDEFAULTDESCRIPTION
readyShardReady--Ready Info.

Shard_Resume

Sent when a shard on a cluster resumes.

PARAMETERTYPEOPTIONALDEFAULTDESCRIPTION
resumeShardResume--Resume Info.

Shard_Reconnecting

Sent when a shard on a cluster is reconnecting.

PARAMETERTYPEOPTIONALDEFAULTDESCRIPTION
reconnectingShardReconnecting--Reconnecting Info.

Shard_Disconnect

Sent when a shard on a cluster disconnects.

PARAMETERTYPEOPTIONALDEFAULTDESCRIPTION
disconnectShardDisconnect--Disconnect Info.

Shard_Error

Sent when a shard on a cluster encounters and error. Sent when your code sucks, you know the drill.

PARAMETERTYPEOPTIONALDEFAULTDESCRIPTION
errorShardError--Error Info.