Skip to content

Conversation

clue
Copy link
Contributor

@clue clue commented Sep 9, 2018

The Connection class emits a close and error event under certain circumstances. These events are now defined on the ConnectionInterface to add some documentation for this and also for consumers to rely on this abstraction instead of a concretion.

Being a new addition to the ConnectionInterface, this PR is technically a BC break. Empirical evidence suggests this should not affect most consumers and some consumers already rely on this behavior anyway (see example 11).

Builds on top of #76

@clue clue added this to the v0.4.0 milestone Sep 9, 2018
@clue clue requested review from jsor and WyriHaximus September 9, 2018 14:07
@jsor jsor merged commit 701c22c into friends-of-reactphp:master Sep 9, 2018
@clue clue deleted the events branch September 9, 2018 19:16
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.

3 participants