PHPDaemon\DNode\DNode::callLocal PHP Method

callLocal() public method

Calls a local method
public callLocal ( $args ) : this
$args Arguments
return this
    public function callLocal(...$args)
    {
        if (!sizeof($args)) {
            return $this;
        }
        $method = array_shift($args);
        $p = ['method' => $method, 'arguments' => $args];
        $this->onPacket($p);
        return $this;
    }