Skip to content

Commit

Permalink
Merge pull request #25 from ratchetphp/ssl-updates
Browse files Browse the repository at this point in the history
Use React SocketClient 0.5 (updated SSL goodness)
  • Loading branch information
cboden committed Mar 21, 2016
2 parents 5aa1b73 + 2f607f3 commit d047758
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,10 @@
}
, "require": {
"php": ">=5.4"
, "react/socket-client": "0.4.*"
, "react/socket-client": "^0.4.3|^0.5"
, "ratchet/rfc6455": "^0.2.1"
}

, "suggest": {
"reactivex/rxphp": "~1.1"
}
}
2 changes: 1 addition & 1 deletion src/Connector.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ protected function generateRequest($url, array $subProtocols, array $headers) {
$uri = $uri->withPort('wss' === $scheme ? 443 : 80);
}

$headers += ['User-Agent' => 'Ratchet-Pawl/0.2.1'];
$headers += ['User-Agent' => 'Ratchet-Pawl/0.2.2'];

$request = array_reduce(array_keys($headers), function($request, $header) use ($headers) {
return $request->withHeader($header, $headers[$header]);
Expand Down
2 changes: 1 addition & 1 deletion tests/autobahn/runner.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

require __DIR__ . '/../../vendor/autoload.php';

define('AGENT', 'Pawl/0.2.1');
define('AGENT', 'Pawl/0.2.2');

$loop = React\EventLoop\Factory::create();

Expand Down

0 comments on commit d047758

Please sign in to comment.