printnatura/main.js

17 lines
339 B
JavaScript
Raw Normal View History

2022-11-04 13:41:36 +00:00
const PrintServer = require('./print-server');
async function main() {
const printServer = new PrintServer();
await printServer.start();
process.on('SIGINT', async function() {
2022-11-10 17:25:21 +00:00
console.log(`\nBye ( ◕ ‿ ◕ )っ`);
2022-11-04 13:41:36 +00:00
try {
await printServer.stop();
} catch (err) {
console.error(err);
}
process.exit();
});
}
main();