PHP Class PHPDaemon\Clients\WebSocket\Example

Author: Vasily Zorin ([email protected])
Inheritance: extends PHPDaemon\Core\AppInstance
Afficher le fichier Open project: kakserpom/phpdaemon

Méthodes publiques

Свойство Type Description
$wsclient
$wsconn

Méthodes publiques

Méthode Description
connect ( )
init ( ) : void Constructor.
onReady ( ) : void Called when the worker is ready to go.
onShutdown ( $graceful = false ) : boolean Called when application instance is going to shutdown.

Méthodes protégées

Méthode Description
getConfigDefaults ( ) : array | false Setting default config options Overriden from AppInstance::getConfigDefaults

Method Details

connect() public méthode

public connect ( )

getConfigDefaults() protected méthode

Setting default config options Overriden from AppInstance::getConfigDefaults
protected getConfigDefaults ( ) : array | false
Résultat array | false

init() public méthode

Constructor.
public init ( ) : void
Résultat void

onReady() public méthode

Called when the worker is ready to go.
public onReady ( ) : void
Résultat void

onShutdown() public méthode

Called when application instance is going to shutdown.
public onShutdown ( $graceful = false ) : boolean
Résultat boolean Ready to shutdown?

Property Details

$wsclient public_oe property

public $wsclient

$wsconn public_oe property

public $wsconn