vn-rfid/server.js

16 lines
313 B
JavaScript

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();