PHPDaemon\Core\AppInstance::directCall PHP Method

directCall() public method

Send RPC, executed once in certain worker You can override it
public directCall ( integer $workerId, string $method, array $args = [], mixed $cb = null ) : boolean
$workerId integer Worker Id
$method string Method name
$args array Arguments
$cb mixed Callback
return boolean Success
    public function directCall($workerId, $method, $args = [], $cb = null)
    {
        return Daemon::$process->IPCManager->sendDirectCall($workerId, '\\' . get_class($this) . ($this->name !== '' ? ':' . $this->name : ''), $method, $args, $cb);
    }