Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,13 @@
}
, "require": {
"php": ">=5.4.2"
, "ratchet/rfc6455": "^0.3.1"
, "ratchet/rfc6455": "^0.4.0"
, "react/socket": "^1.0 || ^0.8 || ^0.7 || ^0.6 || ^0.5"
, "react/event-loop": ">=0.4"
, "guzzlehttp/psr7": "^1.7|^2.0"
, "symfony/http-foundation": "^2.6|^3.0|^4.0|^5.0|^6.0"
, "symfony/routing": "^2.6|^3.0|^4.0|^5.0|^6.0"
, "nyholm/psr7": "^1.8"
, "symfony/http-foundation": "^2.6|^3.0|^4.0|^5.0|^6.0|^7.0"
, "symfony/routing": "^2.6|^3.0|^4.0|^5.0|^6.0|^7.0"
}
, "require-dev": {
"phpunit/phpunit": "~4.8"
Expand Down
3 changes: 2 additions & 1 deletion src/Ratchet/WebSocket/WsServer.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?php
namespace Ratchet\WebSocket;
use Nyholm\Psr7\Factory\Psr17Factory;
use Ratchet\ComponentInterface;
use Ratchet\ConnectionInterface;
use Ratchet\MessageComponentInterface as DataComponentInterface;
Expand Down Expand Up @@ -86,7 +87,7 @@ public function __construct(ComponentInterface $component) {
$this->connections = new \SplObjectStorage;

$this->closeFrameChecker = new CloseFrameChecker;
$this->handshakeNegotiator = new ServerNegotiator(new RequestVerifier);
$this->handshakeNegotiator = new ServerNegotiator(new RequestVerifier, new Psr17Factory());
$this->handshakeNegotiator->setStrictSubProtocolCheck(true);

if ($component instanceof WsServerInterface) {
Expand Down