goldilocks.js/lib/worker.js

11 lines
214 B
JavaScript

'use strict';
// TODO needs some sort of config-sync
process.on('message', function (conf) {
var deps = {
messenger: process
, net: require('net')
};
require('./goldilocks.js').create(deps, conf);
});