Added support for SocketCluster https options

Added the following cli flags:
```
--protocol [protocol=http]
--key [protocolOptions.key]
--cert [protcolOptions.cert]
--passphrase [protcolOptions.passphrase]
```
This commit is contained in:
Josiah Savary 2016-04-27 20:47:21 -04:00 committed by jozanza
parent 703bf14316
commit aaa2381459

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
}
}); });
}; };