\Hazaar\Warlock
SocketClient
Summary
Methods Properties Constants
$id
No constants
Properties
$address
$address
$admin
$admin
$closing
$closing
$frameBuffer
$frameBuffer
$id
$id
$jobs
$jobs
If the client has any child jobs
$lastContact
$lastContact
$offset
$offset
Any detected time offset. This doesn't need to be exact so we don't bother worrying about latency.
$payloadBuffer
$payloadBuffer
$ping
$ping
$port
$port
$process
$process
If the client has an associated process. ie: a service
$resource
$resource
$since
$since
$socketCount
$socketCount
$status
$status
$subscriptions
$subscriptions
This is an array of event_id and socket pairs
$type
$type
$username
$username
Methods
__construct()
__construct($server, $id, $type = 'client', $resource = null, $uid = null, $options = Array ( ) )

Parameters

$server

No description

$id

No description

$type

No description

$resource

No description

$uid

No description

$options

No description

getType()
getType()
isLegacy()
isLegacy()
isSubscribed()
isSubscribed($event_id)

Parameters

$event_id

No description

ping()
ping()
pong()
pong()
sendEvent()
sendEvent($event_id, $trigger_id, $data)

Parameters

$event_id

No description

$trigger_id

No description

$data

No description

subscribe()
subscribe($event_id, $resource = null)

Parameters

$event_id

No description

$resource

No description

unsubscribe()
unsubscribe($event_id, $resource = null)

Parameters

$event_id

No description

$resource

No description