src/js/lib/RTRemoteServer.js
/**
   * process call method request
   * @param {RTRemoteTask} task the remote task
   */
process call method request
@param {RTRemoteTask} task the remote task
process call method request @param { RTRemoteTask } task the remote task
handlerCallRequest(task) {
    const { message } = task;
    const args = message[RTConst.FUNCTION_ARGS] || [];
    if (args.length > 0) {
      args.forEach((arg, index) => {
        if (arg[RTConst.TYPE] === RTValueType.FUNCTION) {
          args[index] = helper.updateListenerForRTFuction(task.protocol, arg);
        }
      });
    }
    const response = helper.invokeMethod(this.getObjectByName(message[RTConst.OBJECT_ID_KEY]), message);
    return task.protocol.transport.send(RTRemoteSerializer.toBuffer(response));
  }
handlerCallRequest ( task ) { const { message } = task ; const args = message [ RTConst . FUNCTION_ARGS ] || [ ] ; if ( args . length > 0 ) { args . forEach ( ( arg , index ) => { if ( arg [ RTConst . TYPE ] === RTValueType . FUNCTION ) { args [ index ] = helper . updateListenerForRTFuction ( task . protocol , arg ) ; } } ) ; } const response = helper . invokeMethod ( this . getObjectByName ( message [ RTConst . OBJECT_ID_KEY ] ) , message ) ; return task . protocol . transport . send ( RTRemoteSerializer . toBuffer ( response ) ) ; }
process call method request
 @param {RTRemoteTask} task the remote task
process call method request @param { RTRemoteTask } task the remote task