You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-07-31 05:44:24 +03:00
Add the list of removed events to migration guide (#1761)
* Update v3-to-v4.md * Update README.md * Correct the wrong description * Update docs/v3-to-v4.md Co-authored-by: Simon Prickett <simon@crudworks.org> * Update docs/v3-to-v4.md Co-authored-by: Simon Prickett <simon@crudworks.org> Co-authored-by: Simon Prickett <simon@crudworks.org>
This commit is contained in:
16
README.md
16
README.md
@ -296,15 +296,15 @@ Check out the [Clustering Guide](./docs/clustering.md) when using Node Redis to
|
||||
|
||||
The Node Redis client class is an Nodejs EventEmitter and it emits an event each time the network status changes:
|
||||
|
||||
| Event name | Scenes | Parameters |
|
||||
|--------------|-------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------|
|
||||
| connect | The client is initiating a connection to the server. | _undefined_ |
|
||||
| ready | The client successfully initiated the connection to the server. | _undefined_ |
|
||||
| end | The client disconnected the connection to the server via `.quit()` or `.disconnect()`. | _undefined_ |
|
||||
| error | When a network error has occurred, such as unable to connect to the server or the connection closed unexpectedly. | The error object, such as `SocketClosedUnexpectedlyError: Socket closed unexpectedly` or `Error: connect ECONNREFUSED [IP]:[PORT]` |
|
||||
| reconnecting | The client is trying to reconnect to the server. | _undefined_ |
|
||||
| Event name | Scenes | Arguments to be passed to the listener |
|
||||
|----------------|-------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------|
|
||||
| `connect` | The client is initiating a connection to the server. | _No argument_ |
|
||||
| `ready` | The client successfully initiated the connection to the server. | _No argument_ |
|
||||
| `end` | The client disconnected the connection to the server via `.quit()` or `.disconnect()`. | _No argument_ |
|
||||
| `error` | When a network error has occurred, such as unable to connect to the server or the connection closed unexpectedly. | 1 argument: The error object, such as `SocketClosedUnexpectedlyError: Socket closed unexpectedly` or `Error: connect ECONNREFUSED [IP]:[PORT]` |
|
||||
| `reconnecting` | The client is trying to reconnect to the server. | _No argument_ |
|
||||
|
||||
The client will not emit any other events beyond those listed above.
|
||||
The client will not emit [any other events](./docs/v3-to-v4.md#all-the-removed-events) beyond those listed above.
|
||||
|
||||
## Supported Redis versions
|
||||
|
||||
|
Reference in New Issue
Block a user