Re-enable strict sub protocol check
This commit is contained in:
parent
214a8db846
commit
25c3e4fb3b
@ -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());
|
||||||
|
Loading…
Reference in New Issue
Block a user