|
@ -17,7 +17,7 @@ const path = require('path') |
|
|
* // secure, SPA server with listening websocket now ready on port 8050
|
|
|
* // secure, SPA server with listening websocket now ready on port 8050
|
|
|
*/ |
|
|
*/ |
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
|
/** |
|
|
* @alias module:local-web-server |
|
|
* @alias module:local-web-server |
|
|
*/ |
|
|
*/ |
|
|
class LocalWebServer extends Lws { |
|
|
class LocalWebServer extends Lws { |
|
@ -45,12 +45,12 @@ class LocalWebServer extends Lws { |
|
|
const usage = require('lws/lib/usage') |
|
|
const usage = require('lws/lib/usage') |
|
|
usage.defaults |
|
|
usage.defaults |
|
|
.set('an', 'ws') |
|
|
.set('an', 'ws') |
|
|
.set('av', require('../package').version) |
|
|
|
|
|
|
|
|
.set('av', require('./package').version) |
|
|
.set('cd4', 'api') |
|
|
.set('cd4', 'api') |
|
|
options = Object.assign({ |
|
|
options = Object.assign({ |
|
|
moduleDir: path.resolve(__dirname, `../node_modules`), |
|
|
|
|
|
|
|
|
moduleDir: path.resolve(__dirname, `./node_modules`), |
|
|
modulePrefix: 'lws-', |
|
|
modulePrefix: 'lws-', |
|
|
stack: require('./default-stack') |
|
|
|
|
|
|
|
|
stack: require('./lib/default-stack') |
|
|
}, options) |
|
|
}, options) |
|
|
return super.listen(options) |
|
|
return super.listen(options) |
|
|
|
|
|
|