Skip to content

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

Merged
WyriHaximus merged 5 commits into
reactphp:masterfrom
clue-labs:stream
May 19, 2017
Merged

Consistent stream semantics and forward compatibility with upcoming Stream v1.0#90
WyriHaximus merged 5 commits into
reactphp:masterfrom
clue-labs:stream

Conversation

@clue

@clueclue commented May 19, 2017

Copy link
Copy Markdown
Member

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:masterMay 19, 2017
@clue
clue deleted the stream branch May 19, 2017 12:44
@Fneufneu

Copy link
Copy Markdown

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
Copy Markdown
Member

Feel free to open a PR fixing this 👍

@clue

clue commented Jun 16, 2017

Copy link
Copy Markdown
MemberAuthor

@Fneufneu Thanks for spotting, fixed via #97 👍

Sign up for freeto 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

@clue@Fneufneu@WyriHaximus@jsor