-
Notifications
You must be signed in to change notification settings - Fork 572
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
fix: unify Pool and Client APIs #544
Conversation
ronag
commented
Feb 10, 2021
- 'connect' and 'disconnect' event should have same arguments.
- connected should be an integer
This allows e.g. using |
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.
This needs tests
test added |
acb266d
to
03c743a
Compare
Codecov Report
@@ Coverage Diff @@
## master #544 +/- ##
=======================================
Coverage 99.56% 99.56%
=======================================
Files 16 16
Lines 1386 1387 +1
=======================================
+ Hits 1380 1381 +1
Misses 6 6
Continue to review full report at Codecov.
|
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.
lgtm
I'm going to update my docs PR to include these changes now too |
* start new docs pages following style guide * scaffold Client and start filling in * slight tweaks * add alt overload syntax * add destroy and dispatch * rename interface to parameter * more style guide and add request method * complete client section * move style-guide to mddl * Complete Client.dispatch * add example to constructor * complete client.close * Complete client.connect * finish destroy method * add request docs * add examples to request * complete stream method * complete upgrade and pipeline sections * remove some files * try alt callback overload style * remove redundant async * remove fastify dep and add catch to upgrade example * change callback/promise style * complete incomplete example * remove redundant callback description * improve event sections * complete events examples * improve stream example * change stream example, reorder dispatch sections * fix #544 changes * complete Dispatch Upgrade request example * review pr comments