PHP Class morozovsk\websocket\Daemon

Inheritance: extends Generic
Afficher le fichier Open project: morozovsk/websocket

Protected Properties

Свойство Type Description
$pid

Méthodes publiques

Méthode Description
__construct ( $server, $service, $master )

Méthodes protégées

Méthode 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 méthode

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

_decode() protected méthode

protected _decode ( $connectionId )

_encode() protected méthode

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

_handshake() protected méthode

protected _handshake ( $connectionId )

_onMessage() protected méthode

protected _onMessage ( $connectionId )

_onOpen() protected méthode

protected _onOpen ( $connectionId )

close() protected méthode

protected close ( $connectionId )

getConnectionById() protected méthode

protected getConnectionById ( $connectionId )

getIdByConnection() protected méthode

protected getIdByConnection ( $connection )

onClose() protected méthode

protected onClose ( $connectionId )

onMasterClose() protected méthode

protected onMasterClose ( $connectionId )

onMasterMessage() protected méthode

protected onMasterMessage ( $data )

onMessage() protected méthode

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

onOpen() protected méthode

protected onOpen ( $connectionId, $info )

onServiceClose() protected méthode

protected onServiceClose ( $connectionId )

onServiceMessage() protected méthode

protected onServiceMessage ( $connectionId, $data )

onServiceOpen() protected méthode

protected onServiceOpen ( $connectionId )

onStart() protected méthode

protected onStart ( )

sendToClient() protected méthode

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

sendToMaster() protected méthode

protected sendToMaster ( $data )

sendToService() protected méthode

protected sendToService ( $connectionId, $data )

Property Details

$pid protected_oe property

protected $pid