Skip to content

v1.4.0

Choose a tag to compare

@clue clue released this 15 Sep 10:14
· 149 commits to master since this release
  • Feature: Browser accepts ConnectorInterface and deprecate legacy Sender
    (#76 by @clue)

    If you need custom connector settings (DNS resolution, TLS parameters, timeouts,
    proxy servers etc.), you can explicitly pass a custom instance of the
    ConnectorInterface:

    $connector = new \React\Socket\Connector($loop, array(
        'dns' => '127.0.0.1',
        'tcp' => array(
            'bindto' => '192.168.10.1:0'
        ),
        'tls' => array(
            'verify_peer' => false,
            'verify_peer_name' => false
        )
    ));
    
    $browser = new Browser($loop, $connector);