MyQEE\Server\Clusters\Client::callbackByString PHP Method

callbackByString() protected method

protected callbackByString ( $str, $rs = false )
    protected function callbackByString($str, $rs = false)
    {
        if ($obj = @msgpack_unpack($str)) {
            unset($str);
            if ($this->key) {
                $obj = \MyQEE\Server\RPC\Server::decryption($obj, $this->key);
            }
            if (!$obj) {
                Server::$instance->warn('decryption task result data error');
            }
            if ($rs) {
                return $obj;
            } else {
                $this->callbackFinish($obj->id, $obj->data, $obj->wname);
            }
        }
        return null;
    }