Re-enable strict sub protocol check

This commit is contained in:
Chris Boden 2016-02-21 13:21:52 -05:00
parent 214a8db846
commit 25c3e4fb3b

View File

@ -65,6 +65,7 @@ class WsServer implements HttpServerInterface {
$this->closeFrameChecker = new CloseFrameChecker; $this->closeFrameChecker = new CloseFrameChecker;
$this->handshakeNegotiator = new ServerNegotiator(new RequestVerifier); $this->handshakeNegotiator = new ServerNegotiator(new RequestVerifier);
$this->handshakeNegotiator->setStrictSubProtocolCheck(true);
if ($component instanceof WsServerInterface) { if ($component instanceof WsServerInterface) {
$this->handshakeNegotiator->setSupportedSubProtocols($component->getSubProtocols()); $this->handshakeNegotiator->setSupportedSubProtocols($component->getSubProtocols());