
Added the ability to turn UTF-8 encoding checks off to increase performance Separated encoding checks into its own set of classes Encoding checks now use mbstring or iconv depending on availability
14 lines
373 B
PHP
14 lines
373 B
PHP
<?php
|
|
namespace Ratchet\WebSocket\Version;
|
|
use Guzzle\Http\Message\RequestInterface;
|
|
|
|
class HyBi10 extends RFC6455 {
|
|
public function isProtocol(RequestInterface $request) {
|
|
$version = (int)$request->getHeader('Sec-WebSocket-Version', -1);
|
|
return ($version >= 6 && $version < 13);
|
|
}
|
|
|
|
public function getVersionNumber() {
|
|
return 6;
|
|
}
|
|
} |