import stream from './src/stream.js'; import getConfig from './util/getConfig.js'; import logger from 'pino'; console.logger = logger(); function main() { const conf = getConfig(); stream(conf, e => { console.logger.error(e); setTimeout(main, conf.reconnectInterval); }); } main();