Merge pull request #9 from jozanza/socketcluster-https-options

Added support for SocketCluster https options
This commit is contained in:
Mihail Diordiev 2016-04-28 11:48:24 +03:00
commit 5fdecc8867

View File

@ -5,6 +5,12 @@ module.exports = function(argv) {
host: argv.hostname || null, host: argv.hostname || null,
port: Number(argv.port) || 8000, port: Number(argv.port) || 8000,
workerController: __dirname + '/worker.js', workerController: __dirname + '/worker.js',
allowClientPublish: false allowClientPublish: false,
protocol: argv.protocol || 'http',
protocolOptions: !(argv.protocol === 'https') ? null : {
key: argv.key || null,
cert: argv.cert || null,
passphrase: argv.passphrase || null
}
}); });
}; };