src/js/lib/RTRemoteServer.js
/**
   * register a object with object name
   * @param {string} objectName the object name
   * @param {object} obj the object entity
   */
register a object with object name
@param {string} objectName the object name
@param {object} obj the object entity
register a object with object name @param { string } objectName the object name @param { object } obj the object entity
registerObject(objectName, obj) {
    if (registeredObjectMap[objectName]) { 
      throw new RTException(`object with name = ${objectName} already exists in server ${
        this.serverName}, please don't register again.`);
    }
    registeredObjectMap[objectName] = obj;
    logger.info(`object with name = ${objectName} register successfully in server ${this.serverName}`);
  }
registerObject ( objectName , obj ) { if ( registeredObjectMap [ objectName ] ) { throw new RTException ( ` ${ objectName } ${ this . serverName } ` ) ; } registeredObjectMap [ objectName ] = obj ; logger . info ( ` ${ objectName } ${ this . serverName } ` ) ; }
register a object with object name
 @param {string} objectName the object name
 @param {object} obj the object entity
register a object with object name @param { string } objectName the object name @param { object } obj the object entity
// object exists