src/js/lib/RTRemoteServer.js
/**
   * process set property by index request
   * @param {RTRemoteTask} task the remote task
   */
process set property by index request
@param {RTRemoteTask} task the remote task
process set property by index request @param { RTRemoteTask } task the remote task
handlerSetPropertyByIndexRequest(task) {
    const { message } = task;
    if (message[RTConst.VALUE][RTConst.TYPE] === RTValueType.FUNCTION) {
      const rtFunction = message[RTConst.VALUE];
      message[RTConst.VALUE] = helper.updateListenerForRTFuction(task.protocol, rtFunction);
    }
    const response = helper.setProperty(this.getObjectByName(message[RTConst.OBJECT_ID_KEY]), message);
    response[RTConst.MESSAGE_TYPE] = RTRemoteMessageType.SET_PROPERTY_BYINDEX_RESPONSE;
    return task.protocol.transport.send(RTRemoteSerializer.toBuffer(response));
  }
handlerSetPropertyByIndexRequest ( task ) { const { message } = task ; if ( message [ RTConst . VALUE ] [ RTConst . TYPE ] === RTValueType . FUNCTION ) { const rtFunction = message [ RTConst . VALUE ] ; message [ RTConst . VALUE ] = helper . updateListenerForRTFuction ( task . protocol , rtFunction ) ; } const response = helper . setProperty ( this . getObjectByName ( message [ RTConst . OBJECT_ID_KEY ] ) , message ) ; response [ RTConst . MESSAGE_TYPE ] = RTRemoteMessageType . SET_PROPERTY_BYINDEX_RESPONSE ; return task . protocol . transport . send ( RTRemoteSerializer . toBuffer ( response ) ) ; }
process set property by index request
 @param {RTRemoteTask} task the remote task
process set property by index request @param { RTRemoteTask } task the remote task