Skip to content
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

Consistent stream semantics and forward compatibility with upcoming Stream v1.0 #90

Merged
merged 5 commits into from
May 19, 2017

Conversation

clue
Copy link
Member

@clue clue commented May 19, 2017

The Request is a WritableStreamInterface and now obeys its method and event semantics.
The Response is a ReadableStreamInterface and now obeys its method and event semantics.

Resolves / closes #70
Supersedes / closes #83
Builds on top of / closes #87 (thanks @maciejmrozinski!)

@WyriHaximus WyriHaximus merged commit 510041f into reactphp:master May 19, 2017
@clue clue deleted the stream branch May 19, 2017 12:44
@Fneufneu
Copy link

I'm a bit late but you forget to update README.

$response->on('data', function ($data, $response) {

should be

$response->on('data', function ($data) {

@WyriHaximus
Copy link
Member

Feel free to open a PR fixing this 👍

@clue
Copy link
Member Author

clue commented Jun 16, 2017

@Fneufneu Thanks for spotting, fixed via #97 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unclear event semantics
4 participants