code: function GpsdHttpClient (adapter, devid) {
   	
      this.debug =  adapter.debug; // inherit debug level
      this.uid  = "httpclient//" + adapter.info + ":" + devid;
          
      this.adapter       = adapter;
      this.gateway       = adapter.gateway;
      this.controller    = adapter.controller;
      this.socket        = null;     // we cannot rely on socket to talk to device
      this.devid         = false;    // we get uid directly from device
      this.name          = false;
      this.logged        = false;
      this.alarm         = 0;        // count alarm messages
      this.count         = 0;        // generic counter used by file backend
      this.errorcount    = 0;        // number of ignore messages
      
      this.uid = "httpclient://" + this.adapter.info + ":" + this.adapter.id;
  
  }
docs: called from http class of adapter