You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`connect`| The cluster connected and ready to use |_No arguments_|
129
+
|`connect`| The cluster has successfully connected and is ready to us|_No arguments_|
130
130
|`disconnect`| The cluster has disconnected |_No arguments_|
131
131
|`error`| The cluster has errored |`(error: Error)`|
132
-
|`node-connect`| One of the cluster's nodes has connected |`(node: { host: string, port: number })`|
133
-
|`node-disconnect`| One of the cluster's nodes has disconnected|`(node: { host: string, port: number })`|
134
-
|`node-ready`| One of the cluster's nodes is ready to connect |`(node: { host: string, port: number })`|
135
-
|`node-reconnecting`| One of the cluster's nodes is trying to reconnect after error has occurred|`(node: { host: string, port: number })`|
136
-
|`node-error`|One of the cluster's nodes has errored, usually during TCP connection |`(error: Error, node: { host: string, port: number }`|
132
+
|`node-ready`| A cluster node is ready to establish a connection|`(node: { host: string, port: number })`|
133
+
|`node-connect`| A cluster node has connected |`(node: { host: string, port: number })`|
134
+
|`node-reconnecting`| A cluster node is attempting to reconnect after an error|`(node: { host: string, port: number })`|
135
+
|`node-disconnect`| A cluster node has disconnected |`(node: { host: string, port: number })`|
136
+
|`node-error`|A cluster node has has errored (usually during TCP connection)|`(error: Error, node: { host: string, port: number })`|
137
137
138
138
> :warning: You **MUST** listen to `error` events. If a cluster doesn't have at least one `error` listener registered and
139
139
> an `error` occurs, that error will be thrown and the Node.js process will exit. See the [ > `EventEmitter` docs](https://nodejs.org/api/events.html#events_error_events) for more details.
0 commit comments