Skip to content

Commit 7d1af95

Browse files
committed
chore(deps): ratchet rfc6455 0.4
1 parent 5cc537d commit 7d1af95

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,11 @@
2727
}
2828
, "require": {
2929
"php": ">=5.4.2"
30-
, "ratchet/rfc6455": "^0.3.1"
30+
, "ratchet/rfc6455": "^0.4.0"
3131
, "react/socket": "^1.0 || ^0.8 || ^0.7 || ^0.6 || ^0.5"
3232
, "react/event-loop": ">=0.4"
3333
, "guzzlehttp/psr7": "^1.7|^2.0"
34+
, "nyholm/psr7": "^1.8"
3435
, "symfony/http-foundation": "^2.6|^3.0|^4.0|^5.0|^6.0|^7.0"
3536
, "symfony/routing": "^2.6|^3.0|^4.0|^5.0|^6.0|^7.0"
3637
}

src/Ratchet/WebSocket/WsServer.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<?php
22
namespace Ratchet\WebSocket;
3+
use Nyholm\Psr7\Factory\Psr17Factory;
34
use Ratchet\ComponentInterface;
45
use Ratchet\ConnectionInterface;
56
use Ratchet\MessageComponentInterface as DataComponentInterface;
@@ -86,7 +87,7 @@ public function __construct(ComponentInterface $component) {
8687
$this->connections = new \SplObjectStorage;
8788

8889
$this->closeFrameChecker = new CloseFrameChecker;
89-
$this->handshakeNegotiator = new ServerNegotiator(new RequestVerifier);
90+
$this->handshakeNegotiator = new ServerNegotiator(new RequestVerifier, new Psr17Factory());
9091
$this->handshakeNegotiator->setStrictSubProtocolCheck(true);
9192

9293
if ($component instanceof WsServerInterface) {

0 commit comments

Comments
 (0)