PHP Class morozovsk\websocket\Daemon

Inheritance: extends Generic
Mostrar archivo Open project: morozovsk/websocket

Protected Properties

Property Type Description
$pid

Public Methods

Method Description
__construct ( $server, $service, $master )

Protected Methods

Method Description
_decode ( $connectionId )
_encode ( $payload, $type = 'text' )
_handshake ( $connectionId )
_onMessage ( $connectionId )
_onOpen ( $connectionId )
close ( $connectionId )
getConnectionById ( $connectionId )
getIdByConnection ( $connection )
onClose ( $connectionId )
onMasterClose ( $connectionId )
onMasterMessage ( $data )
onMessage ( $connectionId, $packet, $type )
onOpen ( $connectionId, $info )
onServiceClose ( $connectionId )
onServiceMessage ( $connectionId, $data )
onServiceOpen ( $connectionId )
onStart ( )
sendToClient ( $connectionId, $data, $type = 'text' )
sendToMaster ( $data )
sendToService ( $connectionId, $data )

Method Details

__construct() public method

public __construct ( $server, $service, $master )

_decode() protected method

protected _decode ( $connectionId )

_encode() protected method

protected _encode ( $payload, $type = 'text' )

_handshake() protected method

protected _handshake ( $connectionId )

_onMessage() protected method

protected _onMessage ( $connectionId )

_onOpen() protected method

protected _onOpen ( $connectionId )

close() protected method

protected close ( $connectionId )

getConnectionById() protected method

protected getConnectionById ( $connectionId )

getIdByConnection() protected method

protected getIdByConnection ( $connection )

onClose() protected method

protected onClose ( $connectionId )

onMasterClose() protected method

protected onMasterClose ( $connectionId )

onMasterMessage() protected method

protected onMasterMessage ( $data )

onMessage() protected method

protected onMessage ( $connectionId, $packet, $type )

onOpen() protected method

protected onOpen ( $connectionId, $info )

onServiceClose() protected method

protected onServiceClose ( $connectionId )

onServiceMessage() protected method

protected onServiceMessage ( $connectionId, $data )

onServiceOpen() protected method

protected onServiceOpen ( $connectionId )

onStart() protected method

protected onStart ( )

sendToClient() protected method

protected sendToClient ( $connectionId, $data, $type = 'text' )

sendToMaster() protected method

protected sendToMaster ( $data )

sendToService() protected method

protected sendToService ( $connectionId, $data )

Property Details

$pid protected_oe property

protected $pid