Skip to content

Simplify usage by updating to new default loop and making Connector optional#41

Merged
clue merged 2 commits intoclue:masterfrom
clue-labs:default-loop
Jul 22, 2021
Merged

Simplify usage by updating to new default loop and making Connector optional#41
clue merged 2 commits intoclue:masterfrom
clue-labs:default-loop

Conversation

@clue
Copy link
Owner

@clue clue commented Jul 22, 2021

This changeset simplifies usage by supporting the new default loop.

// old (still supported)
$proxy = new Clue\React\HttpProxy\ProxyConnector(
    '127.0.0.1:8080',
    new React\Socket\Connector($loop)
);

// new (using default loop)
$proxy = new Clue\React\HttpProxy\ProxyConnector('127.0.0.1:8080');

Builds on top of reactphp/event-loop#232, reactphp/socket#260 and reactphp/http#410
Refs clue/reactphp-ssh-proxy#27

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.

1 participant