\Hazaar\Socket
WebSocketServer
Abstract
Summary
Methods Properties Constants
run
No constants
Properties
$headerOriginRequired
$headerOriginRequired
$headerSecWebSocketExtensionsRequired
$headerSecWebSocketExtensionsRequired
$headerSecWebSocketProtocolRequired
$headerSecWebSocketProtocolRequired
$interactive
$interactive
$master
$master
$maxBufferSize
$maxBufferSize
$sockets
$sockets
$users
$users
Methods
__construct()
__construct($addr, $port, $bufferLength = 2048)

Parameters

$addr

No description

$port

No description

$bufferLength

No description

applyMask()
applyMask($headers, $payload)

Parameters

$headers

No description

$payload

No description

checkHost()
checkHost($hostName)

Parameters

$hostName

No description

checkOrigin()
checkOrigin($origin)

Parameters

$origin

No description

checkRSVBits()
checkRSVBits($headers, $user)

Parameters

$headers

No description

$user

No description

checkWebsocExtensions()
checkWebsocExtensions($extensions)

Parameters

$extensions

No description

checkWebsocProtocol()
checkWebsocProtocol($protocol)

Parameters

$protocol

No description

closed()
closed($user)

Parameters

$user

No description

connect()
connect($socket)

Parameters

$socket

No description

connected()
connected($user)

Parameters

$user

No description

connecting()
connecting($user)

Parameters

$user

No description

deframe()
deframe($message, $user)

Parameters

$message

No description

$user

No description

disconnect()
disconnect($socket, $triggerClosed = true)

Parameters

$socket

No description

$triggerClosed

No description

doHandshake()
doHandshake($user, $buffer)

Parameters

$user

No description

$buffer

No description

extractHeaders()
extractHeaders($message)

Parameters

$message

No description

extractPayload()
extractPayload($message, $headers)

Parameters

$message

No description

$headers

No description

frame()
frame($message, $user, $messageType = 'text', $messageContinues = false)

Parameters

$message

No description

$user

No description

$messageType

No description

$messageContinues

No description

getUserBySocket()
getUserBySocket($socket)

Parameters

$socket

No description

printHeaders()
printHeaders($headers)

Parameters

$headers

No description

process()
process($user, $message)

Parameters

$user

No description

$message

No description

processExtensions()
processExtensions($extensions)

Parameters

$extensions

No description

processProtocol()
processProtocol($protocol)

Parameters

$protocol

No description

run()
run()
Main processing loop
send()
send($user, $message)

Parameters

$user

No description

$message

No description

stderr()
stderr($message)

Parameters

$message

No description

stdout()
stdout($message)

Parameters

$message

No description

strtohex()
strtohex($str)

Parameters

$str

No description