Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

clue
Copy link
Member

@clue clue commented May 30, 2025

This changeset updates to use the global default loop when available with react/event-loop v1.2+. This is part 11 of reviving Ratchet as discussed in #1054, unblocking more future progress.

Among others, this changeset simplifies usage by supporting the new default loop and avoids deprecated APIs (reactphp/event-loop#226 and upcoming reactphp/event-loop#274). For most consumers of this package, this change should not have any visible effect, given the old Factory sets the global Loop internally. Similar to #1095 and #1098, this was implemented in a way to use the newer API when available and the legacy APIs as a fallback. The test suite confirms this has full test coverage and does not otherwise affect any of the existing tests. In case this affects your usage, you may still pass an explicit loop instance to restore the previous behavior.

Overall, this required quite a massive effort. If you want to support this project, please consider sponsoring @reactphp ❤️

Builds on top of reactphp/event-loop#226, 6512da0, #1098, #1095, #1088 and others, one step closer to reviving Ratchet as discussed in #1054
Resolves / closes #956

@clue clue added this to the 0.4.5 milestone May 30, 2025
@clue clue requested a review from PaulRotmann May 30, 2025 13:27
Copy link
Contributor

@PaulRotmann PaulRotmann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@PaulRotmann PaulRotmann merged commit a54e9f8 into ratchetphp:0.4.x May 30, 2025
14 checks passed
@clue clue deleted the default-loop branch May 30, 2025 14:23
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.

deprecated function call
2 participants