Ratchet\WebSocket\Version\RFC6455::isProtocol PHP Method

isProtocol() public method

public isProtocol ( Guzzle\Http\Message\RequestInterface $request )
$request Guzzle\Http\Message\RequestInterface
    public function isProtocol(RequestInterface $request)
    {
        $version = (int) (string) $request->getHeader('Sec-WebSocket-Version');
        return $this->getVersionNumber() === $version;
    }