From aaa2381459534f06cf4ec5478bd18f5fbd649c81 Mon Sep 17 00:00:00 2001 From: Josiah Savary Date: Wed, 27 Apr 2016 20:47:21 -0400 Subject: [PATCH] Added support for SocketCluster https options Added the following cli flags: ``` --protocol [protocol=http] --key [protocolOptions.key] --cert [protcolOptions.cert] --passphrase [protcolOptions.passphrase] ``` --- bin/server.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/bin/server.js b/bin/server.js index 432b51e..db344cc 100644 --- a/bin/server.js +++ b/bin/server.js @@ -5,6 +5,12 @@ module.exports = function(argv) { host: argv.hostname || null, port: Number(argv.port) || 8000, 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 + } }); };