PHP 클래스 PHPDaemon\Clients\WebSocket\Example

저자: Vasily Zorin ([email protected])
상속: extends PHPDaemon\Core\AppInstance
파일 보기 프로젝트 열기: kakserpom/phpdaemon

공개 프로퍼티들

프로퍼티 타입 설명
$wsclient
$wsconn

공개 메소드들

메소드 설명
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.

보호된 메소드들

메소드 설명
getConfigDefaults ( ) : array | false Setting default config options Overriden from AppInstance::getConfigDefaults

메소드 상세

connect() 공개 메소드

public connect ( )

getConfigDefaults() 보호된 메소드

Setting default config options Overriden from AppInstance::getConfigDefaults
protected getConfigDefaults ( ) : array | false
리턴 array | false

init() 공개 메소드

Constructor.
public init ( ) : void
리턴 void

onReady() 공개 메소드

Called when the worker is ready to go.
public onReady ( ) : void
리턴 void

onShutdown() 공개 메소드

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

프로퍼티 상세

$wsclient 공개적으로 프로퍼티

public $wsclient

$wsconn 공개적으로 프로퍼티

public $wsconn