Метод | Описание | |
---|---|---|
checkVersion ( Kraken\Network\Http\HttpRequestInterface $request ) : boolean | Return true if any of enabled versions supports WebSocket protocol demanded in request. | |
disableVersion ( Kraken\Network\Websocket\Driver\Version\VersionInterface $version ) : Kraken\Network\Websocket\Driver\Version\VersionManagerInterface | Disable support for a specific version of the WebSocket protocol. | |
enableVersion ( Kraken\Network\Websocket\Driver\Version\VersionInterface $version ) : Kraken\Network\Websocket\Driver\Version\VersionManagerInterface | Enable support for a specific version of the WebSocket protocol. | |
getVersion ( Kraken\Network\Http\HttpRequestInterface $request ) : Kraken\Network\Websocket\Driver\Version\VersionInterface | null | Get the protocol negotiator for the request, if supported. | |
getVersionHeader ( ) : string |
public checkVersion ( Kraken\Network\Http\HttpRequestInterface $request ) : boolean | ||
$request | Kraken\Network\Http\HttpRequestInterface | |
Результат | boolean |
public disableVersion ( Kraken\Network\Websocket\Driver\Version\VersionInterface $version ) : Kraken\Network\Websocket\Driver\Version\VersionManagerInterface | ||
$version | Kraken\Network\Websocket\Driver\Version\VersionInterface | |
Результат | Kraken\Network\Websocket\Driver\Version\VersionManagerInterface |
public enableVersion ( Kraken\Network\Websocket\Driver\Version\VersionInterface $version ) : Kraken\Network\Websocket\Driver\Version\VersionManagerInterface | ||
$version | Kraken\Network\Websocket\Driver\Version\VersionInterface | |
Результат | Kraken\Network\Websocket\Driver\Version\VersionManagerInterface |
public getVersion ( Kraken\Network\Http\HttpRequestInterface $request ) : Kraken\Network\Websocket\Driver\Version\VersionInterface | null | ||
$request | Kraken\Network\Http\HttpRequestInterface | |
Результат | Kraken\Network\Websocket\Driver\Version\VersionInterface | null |