ClusterEventEmitter
Extends EventEmitter
Recieves events from primary node about other clusters.
Constructor
new ClusterEventEmitter();
Events
Cluster_Death
Sent when a cluster dies.
| PARAMETER | TYPE | OPTIONAL | DEFAULT | DESCRIPTION |
|---|---|---|---|---|
| death | ClusterDeath | - | - | Death Info. |
Cluster_Error
Sent when a cluster errors out. Usually sent when you write bas code that throws an error.
| PARAMETER | TYPE | OPTIONAL | DEFAULT | DESCRIPTION |
|---|---|---|---|---|
| error | ClusterError | - | - | Error Info. |
Cluster_Warn
Sent when a cluster encounters a warn usually somthing to do with DJS.
| PARAMETER | TYPE | OPTIONAL | DEFAULT | DESCRIPTION |
|---|---|---|---|---|
| warn | ClusterWarn | - | - | Warn Info. |
Cluster_Ready
Sent when a cluster becomes ready.
| PARAMETER | TYPE | OPTIONAL | DEFAULT | DESCRIPTION |
|---|---|---|---|---|
| ready | ClusterReady | - | - | Ready Info. |
Shard_Ready
Sent when a shard on a cluster becomes ready.
| PARAMETER | TYPE | OPTIONAL | DEFAULT | DESCRIPTION |
|---|---|---|---|---|
| ready | ShardReady | - | - | Ready Info. |
Shard_Resume
Sent when a shard on a cluster resumes.
| PARAMETER | TYPE | OPTIONAL | DEFAULT | DESCRIPTION |
|---|---|---|---|---|
| resume | ShardResume | - | - | Resume Info. |
Shard_Reconnecting
Sent when a shard on a cluster is reconnecting.
| PARAMETER | TYPE | OPTIONAL | DEFAULT | DESCRIPTION |
|---|---|---|---|---|
| reconnecting | ShardReconnecting | - | - | Reconnecting Info. |
Shard_Disconnect
Sent when a shard on a cluster disconnects.
| PARAMETER | TYPE | OPTIONAL | DEFAULT | DESCRIPTION |
|---|---|---|---|---|
| disconnect | ShardDisconnect | - | - | Disconnect Info. |
Shard_Error
Sent when a shard on a cluster encounters and error. Sent when your code sucks, you know the drill.
| PARAMETER | TYPE | OPTIONAL | DEFAULT | DESCRIPTION |
|---|---|---|---|---|
| error | ShardError | - | - | Error Info. |