public function register($topic, $callback, $options = null, $isFunction = false)
    {
        return $this->getCallee()->register(
            $this->getSession(),
            $this->prepareTopic($topic),
            $this->wrapWithProxy($callback, $isFunction),
            $options
        );
    }
public function register($topic, $callback, $options = null, $isFunction = false)
    {
        return $this->getCallee()->register(
            $this->getSession(),
            $this->prepareTopic($topic),
            $this->wrapWithProxy($callback, $isFunction),
            $options
        );
    }
public function register ( $ topic , $ callback , $ options = null , $ isFunction = false ) { return $ this -> getCallee ( ) -> register ( $ this -> getSession ( ) , $ this -> prepareTopic ( $ topic ) , $ this -> wrapWithProxy ( $ callback , $ isFunction ) , $ options ) ; }
Register a RPC.

@param string  $topic
@param Closure $callback
@param array   $options
@param bool    $isFunction

@return \React\Promise\Promise
Register a RPC .