PHP Interface Kraken\Network\Websocket\Driver\Version\VersionInterface

Show file Open project: kraken-php/framework Interface Usage Examples

Public Methods

Method Description
getVersionNumber ( ) : integer Return numberic identificator of the protocol.
isRequestSupported ( Kraken\Network\Http\HttpRequestInterface $request ) : boolean Given an HTTP header, determine if this version should handle the protocol.

Method Details

getVersionNumber() public method

Return numberic identificator of the protocol.
public getVersionNumber ( ) : integer
return integer

isRequestSupported() public method

Given an HTTP header, determine if this version should handle the protocol.
public isRequestSupported ( Kraken\Network\Http\HttpRequestInterface $request ) : boolean
$request Kraken\Network\Http\HttpRequestInterface
return boolean