Skip to content
Lloyd Brookes edited this page Jul 7, 2017 · 17 revisions

lws

Lws ⏏

Kind: Exported class

lws.create([options])

Create a listening server.

Kind: instance method of Lws

Param Type Description
[options] object Server options
[options.port] number Port
[options.hostname] string The hostname (or IP address) to listen on. Defaults to 0.0.0.0.
[options.configFile] string Config file, defaults to 'lws.config.js'.
[options.stack] Array.<string> | Array.<Features> Array of feature classes, or filenames of modules exporting a feature class.
[options.moduleDir] Array.<string> One or more directories to search for feature modules.
[options.https] boolean Enable HTTPS using a built-in key and cert, registered to the domain 127.0.0.1.
[options.key] string SSL key. Supply along with --cert to launch a https server.
[options.cert] string SSL cert. Supply along with --key to launch a https server.
Clone this wiki locally