Skip to content
This repository has been archived by the owner on Jun 4, 2018. It is now read-only.

Pawl WebSocket Client #17

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Conversation

mcrumm
Copy link

@mcrumm mcrumm commented Dec 17, 2015

Related to #14.

This PR replaces devristo/phpws with ratchet/pawl, a WebSocket client that's more closely aligned with the rest of the ReactPHP ecosystem.

PHP7 is already supported, though some older versions have bugs. This is due to a workaround in react/socket-client for handling encrypted streams. I'll save you the trip down the rabbit hole: Some versions work, some don't, and the problem is the openssl extension. Depending on your PHP version, you might need to pin react/socket-client to a specific release if things aren't working quite right.

PS: I added the examplebot and the robo task primarily for testing. If you're interested in merging this, but would rather not include those changes, I would be happy to remove them.

@sagebind
Copy link
Owner

This is definitely a good solution for the time being. Nice job! 👍

I still plan on doing a rewrite in the future with Icicle, but it may be some time yet before the Icicle websocket package is ready.

@mcrumm mcrumm force-pushed the feature/use_pawl branch from c47d040 to 95b1841 Compare March 12, 2016 22:23
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants