src/js/lib/RTRemoteProtocol.js
/**
   * process message in client mode
   * @param {object} message the message
   */
process message in client mode
@param {object} message the message
process message in client mode @param { object } message the message
processMessageInClientMode(message) {
    if (message[RTConst.MESSAGE_TYPE] === RTRemoteMessageType.METHOD_CALL_REQUEST) {
      const functionCb = RTEnvironment.getRtFunctionMap()[message[RTConst.FUNCTION_KEY]];
      if (functionCb) {
        this.injectProtocolToMessageObjectValue(message);
        functionCb(message[RTConst.FUNCTION_ARGS]);
      }
      this.sendCallResponse(message[RTConst.CORRELATION_KEY]);
    } else {
      logger.error(`unexpected message ${message}`);
    }
  }
processMessageInClientMode ( message ) { if ( message [ RTConst . MESSAGE_TYPE ] === RTRemoteMessageType . METHOD_CALL_REQUEST ) { const functionCb = RTEnvironment . getRtFunctionMap ( ) [ message [ RTConst . FUNCTION_KEY ] ] ; if ( functionCb ) { this . injectProtocolToMessageObjectValue ( message ) ; functionCb ( message [ RTConst . FUNCTION_ARGS ] ) ; } this . sendCallResponse ( message [ RTConst . CORRELATION_KEY ] ) ; } else { logger . error ( ` ${ message } ` ) ; } }
process message in client mode
 @param {object} message the message
process message in client mode @param { object } message the message