-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Add the event
doc
#1745
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add the event
doc
#1745
Conversation
Please help me to improve the writing, my English is so bad :(
Thanks for the contribution, @AnnAngela. Very helpful. I'd like to edit it a bit for grammar and spelling. Can you grant me access to do so? Thanks! |
Yes, I am very grateful for your willingness to help me!
|
|
||
Node Redis client class extends Node.js's `EventEmitter` class, and the client emits an event each time the network status changes: | ||
|
||
| Event name | Scenes | Parameters | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we clean up the table format here to be a bit tidier?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like to use this site: http://markdowntable.com/
| 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_ | ||
|
||
Except for the network, the client will not emmit any events any more. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The client will not emit any other events beyond those listed abovee.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doh! I spelled above wrong. ;)
Description
Checklist
npm test
pass with this change (including linting)?The PR only changes a doc.
Please help me to improve the writing, my English is so bad :(