Skip to content

Update to use new SocketServer API with react/socket v1.9+ #1106

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

Merged
merged 1 commit into from
May 30, 2025

Conversation

clue
Copy link
Member

@clue clue commented May 30, 2025

This changeset updates to use the new SocketServer API available with react/socket v1.9+. This is part 12 of reviving Ratchet as discussed in #1054, unblocking more future progress.

This is mostly done to avoid using deprecated APIs (reactphp/socket#263 and upcoming reactphp/socket#314) and should not have any visible effect for consumers of this package. Similar to #1105 and #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.

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

Builds on top of reactphp/socket#263, #1105, #1098, #1095, #1088, #485 and others, one step closer to reviving Ratchet as discussed in #1054
Resolves / closes #917
Resolves / closes #1038

@clue clue added this to the 0.4.5 milestone May 30, 2025
@clue clue requested a review from PaulRotmann May 30, 2025 14:31
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 e5cd54c into ratchetphp:0.4.x May 30, 2025
14 checks passed
@clue clue deleted the socket-update branch May 30, 2025 14:41
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.

Update to react/socket 1.14.0 ReactPHP recommends SocketServer to replace React\Socket\Server API
2 participants