Skip to content
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

Socket connector #57

Merged
merged 4 commits into from
Oct 12, 2017
Merged

Socket connector #57

merged 4 commits into from
Oct 12, 2017

Conversation

mbonneau
Copy link
Member

@mbonneau mbonneau commented Oct 3, 2017

Injecting the socket Connector into Pawl\Connector allows greater control.

Copy link
Member

@clue clue left a comment

Choose a reason for hiding this comment

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

Nice! See my remark in #56, otherwise LGTM 👍

Does it make sense to add tests and documentation for this?

@cboden cboden self-requested a review October 4, 2017 00:30
@cboden cboden added this to the 0.3 milestone Oct 9, 2017

return $connector->create($uri->getHost(), $port)->then(function(DuplexStreamInterface $stream) use ($request, $subProtocols) {
$uriString = $uri->getHost() . ':' . $port;
Copy link
Member

Choose a reason for hiding this comment

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

What if the URL was something like wss://socketo.me:9001?

Perhaps if $secure we set the scheme to tls://?

Copy link
Member Author

Choose a reason for hiding this comment

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

This is fixed in the latest commit.

@cboden cboden merged commit 44d9225 into ratchetphp:master Oct 12, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants