docs: function connect(entry) {
    entry.socket = Net.connect({path: entry.dval.socket || '/var/run/lirc/lircd'});
    entry.socket.setEncoding('utf8');
    entry.socket.on('error', onError.bind(entry));
    entry.socket.on('data', onData.bind(entry));
    entry.socket.on('end', onEnd.bind(entry));
  }