docs: function loglet(opt, _done) {
    var done = (typeof _done === 'function' ? _done : noop);
    if (typeof opt !== 'object' || !opt) {
      console.warn('loglet: missing options. Usage: loglet({key, secret})');
      return done(new Error('Invalid loglet.io configuration'));
    }
    if(typeof opt.key !== 'string') {
      console.warn('loglet: missing key. Usage: loglet({key, secret})');
      return done(new Error('Invalid loglet.io configuration'));
    }
    if (clientObj) {
      console.warn('loglet: already initialized.');
      return done();
    }
    opt = ObjectAssign({}, DEFAULT_OPTIONS, opt);
    clientObj = createConnection(this, opt, done, emit);
    loglet.on('connect', flushEvents);
    return loglet;
  }