1
0
mirror of https://github.com/exane/not-gwent-online synced 2024-10-31 10:36:53 +00:00
not-gwent-online/server/server.js

13 lines
451 B
JavaScript
Raw Normal View History

2015-06-15 19:03:12 +00:00
var argv = require('minimist')(process.argv.slice(2));
var SocketCluster = require('socketcluster').SocketCluster;
2015-06-10 16:12:52 +00:00
2015-06-15 19:03:12 +00:00
var socketCluster = new SocketCluster({
workers: Number(argv.w) || 1,
stores: Number(argv.s) || 1,
port: Number(argv.p) || 16918,
appName: argv.n || null,
workerController: __dirname + '/worker.js',
storeController: __dirname + '/store.js',
socketChannelLimit: 100,
rebootWorkerOnCrash: argv['auto-reboot'] != false
});