Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
'use strict';
const Nodal = require('nodal');
const cluster = require('cluster');
if (cluster.isMaster) {
const daemon = new Nodal.Daemon();
daemon.start(Nodal.my.Config.secrets.port);
} else {
const app = new Nodal.Application();
app.listen(Nodal.my.Config.secrets.port);
}