src/js/lib/RTRemoteServer.js
/**
   * init rt remote server
   * 1. create udp multicast server, receive udp locate object packet and return message
   * 2. create rpc tcp socket server, receive rpc messages and return messages
   * @param {string} udpHost the multicast udp address
   * @param {number|int} udpPort the multicast udp port
   * @param {string} rpcHost the tcp bind ip address
   * @param {number|int} rpcPort the tcp bind port
   */
init rt remote server
1. create udp multicast server, receive udp locate object packet and return message
2. create rpc tcp socket server, receive rpc messages and return messages
@param {string} udpHost the multicast udp address
@param {number|int} udpPort the multicast udp port
@param {string} rpcHost the tcp bind ip address
@param {number|int} rpcPort the tcp bind port
init rt remote server 1 . create udp multicast server receive udp locate object packet and return message 2 . create rpc tcp socket server receive rpc messages and return messages @param { string } udpHost the multicast udp address @param { number|int } udpPort the multicast udp port @param { string } rpcHost the tcp bind ip address @param { number|int } rpcPort the tcp bind port
init(udpHost, udpPort, rpcHost, rpcPort) {
    RTEnvironment.setRunMode(RTConst.SERVER_MODE);
    return this.openMulticastServer(udpHost, udpPort)
      .then(() => this.openRpcSocketServer(rpcHost, rpcPort))
      .then(() => this);
  }
init ( udpHost , udpPort , rpcHost , rpcPort ) { RTEnvironment . setRunMode ( RTConst . SERVER_MODE ) ; return this . openMulticastServer ( udpHost , udpPort ) . then ( ( ) => this . openRpcSocketServer ( rpcHost , rpcPort ) ) . then ( ( ) => this ) ; }
init rt remote server
 1. create udp multicast server, receive udp locate object packet and return message
 2. create rpc tcp socket server, receive rpc messages and return messages
 @param {string} udpHost the multicast udp address
 @param {number|int} udpPort the multicast udp port
 @param {string} rpcHost the tcp bind ip address
 @param {number|int} rpcPort the tcp bind port
init rt remote server 1 . create udp multicast server receive udp locate object packet and return message 2 . create rpc tcp socket server receive rpc messages and return messages @param { string } udpHost the multicast udp address @param { number|int } udpPort the multicast udp port @param { string } rpcHost the tcp bind ip address @param { number|int } rpcPort the tcp bind port