PHPDaemon\Examples\ExampleBroadcastCall::onReady PHP 메소드

onReady() 공개 메소드

public onReady ( )
    public function onReady()
    {
        $appInstance = $this;
        setTimeout(function ($event) use($appInstance) {
            $appInstance->broadcastCall('hello', [\PHPDaemon\Core\Daemon::$process->getPid()]);
            $event->finish();
        }, 2000000.0);
    }
ExampleBroadcastCall