code: function(realm, key, ssl) {
  
      // Initialize with a specified realm, key, and a boolean indicating wther
      // SSL should be enabled or disabled.
      var scheme = 'https';
      if (typeof ssl !== 'undefined' && !ssl) {
          scheme = 'http';
      }
      var uri = scheme + '://api.fanout.io/realm/' + realm;
      var pubControl = new pubcontrol.PubControlClient(uri);
      pubControl.setAuthJwt({'iss': realm}, new Buffer(key, 'base64'));
      this.pubControl = pubControl;
  }
docs: The Fanout class is used for publishing messages to Fanout.io and is configured with a Fanout.io realm and associated key. SSL can either be enabled or disabled.