-
-
Notifications
You must be signed in to change notification settings - Fork 61
Small fix to emitter of 'data' event #27
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
Conversation
I believe the $response parameter should be added to not miss very first chunk of data.
Proposed change makes code to work in the same way as the following line
$response->emit('data', array($bodyChunk, $response));
in the Response::handleData function.
|
LGTM 👍
I'm tempted to suggest rewording this slightly: We never actually documented the event arguments - this PR makes sure we consistently emit the We might want to update our documentation? Line 12 in 9f5e634
|
|
Looks mostly good to be me but love to see update to the docs are suggested by @clue and in the |
|
Thanks guys for the rapid feedback! Or someone else is already on a way to adjust remaining stuff? |
|
Congratulations on your first PR 🎉.
Docs and tests are the usual suspects when submitting a PR, that way they
reflect the current state of the code and no one gets confused using it. If
you need help just shout 👍.
|
|
Guys, I hope I took into account all propositions, so now PR includes:
waiting for your feedback! 🎯 ;) |
|
Good job @dpovshed, LGTM 👍 |
|
Thanks for the review, :) waiting for confirmation and action from @cboden ! |
|
LGTM |
Small fix to emitter of 'data' event
|
Thank you for your work, I'll tag it shortly 👍 |
|
Tagged 0.4.2. Thanks again for you work. |
|
Thanks guys for your support! Special to @WyriHaximus for nice blog posts here http://blog.wyrihaximus.net/2015/01/reactphp-introduction/ |
I believe the $response parameter should be added to not miss very first chunk of data.
Proposed change makes code to work in the same way as the following line
$response->emit('data', array($bodyChunk, $response));
in the Response::handleData function.