\Hazaar\Warlock
WebSockets
Abstract
Summary
Methods Properties Constants
No constants
Properties
$allowed_protocols
$allowed_protocols
$headers
$headers
$magicGUID
$magicGUID
Methods
__construct()
__construct($allowed_protocols = Array ( ) )

Parameters

$allowed_protocols

No description

acceptHandshake()
acceptHandshake($headers, $responseHeaders = Array ( ) , $key = null, $results = Array ( ) )

Parameters

$headers

No description

$responseHeaders

No description

$key

No description

$results

No description

applyMask()
applyMask($headers, $payload)

Parameters

$headers

No description

$payload

No description

checkHost()
checkHost($host)

Parameters

$host

No description

checkOrigin()
checkOrigin($origin)

Parameters

$origin

No description

checkProtocol()
checkProtocol($protocols)

Parameters

$protocols

No description

checkRequestURL()
checkRequestURL($path)

Parameters

$path

No description

createHandshake()
createHandshake($path, $host, $origin, $key)

Parameters

$path

No description

$host

No description

$origin

No description

$key

No description

frame()
frame($payload, $type = null, $masked = true)

Parameters

$payload

No description

$type

No description

$masked

No description

getFrame()
getFrame($buffer, $payload)

Parameters

$buffer

No description

$payload

No description

getFrameHeaders()
getFrameHeaders($frame)

Parameters

$frame

No description

hexString()
hexString($string)

Parameters

$string

No description

parseHeaders()
parseHeaders($request)

Parameters

$request

No description