code: function ClientConnection(options) {
  
      if (options.udp4 === true && options.tcp === true) {
          throw new Error('Both udp and tcp are set as protocol.  Devices can only communicate in one protocol.');
      }
      if (options.udp4 === false && options.tcp === false) {
          throw new Error('Neither UDP or TCP is set.  Devices must communicate in one protocol.');
      }
  
      if (options.udp4) {
          this.enable_compression = true;
          this.createProxySocket('udp4', options.proxyUrl, options.port);
      } else {
          this.enable_compression = false;
          this.createProxySocket('tcp', options.proxyUrl, options.port);
      }
  
      this.log = options.log;
  
      EventEmitter.call(this);
  }
docs: The connection manager will handle the TCP and UDP transport.  As well as
  the protocol.