You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* @param {Object} options.cors Cors to be passed to express via the `cors` package
27
-
* @param {boolean} options.trust_proxy When true, the server will parse forwarding headers. This should be set when running behind a load-balancer for accurate error messages and logging
28
-
* @param {string} options.listenUri The uri of the host interface to tell express to listen on. Defaults to `http://0.0.0.0:4001
29
-
* @param {boolean} options.i2pEnabled When true, this server will be available over i2p
30
-
* @param {string} options.i2pSamHost The hostname of the i2p SAM control API. Defaults to `127.0.0.1`
31
-
* @param {Integer} options.i2pSamPort The port of the i2p SAM control API. Defaults to `7656`
32
-
* @param {string} options.i2pForwardHost Override i2p forward host. This defaults to `localhost` and typically doesn't need to be changed
29
+
* @param {boolean} [options.trust_proxy=false] When true, the server will parse forwarding headers. This should be set when running behind a load-balancer for accurate error messages and logging
30
+
* @param {string} [options.listenUri=http://0.0.0.0:4000] The uri of the host interface to tell express to listen on. Defaults to `http://0.0.0.0:4001
31
+
* @param {boolean} [options.i2pEnabled=false] When true, this server will be available over i2p
32
+
* @param {string} [options.i2pSamHost=127.0.0.1] The hostname of the i2p SAM control API. Defaults to `127.0.0.1`
33
+
* @param {Integer} [options.i2pSamPort=7656] The port of the i2p SAM control API. Defaults to `7656`
34
+
* @param {string} [options.i2pForwardHost=localhost] Override i2p forward host. This defaults to `localhost` and typically doesn't need to be changed
33
35
* @param {Integer} options.i2pForwardPort Override i2p forward post. This defaults to the port supplied in `options.listenUri`.
34
36
* @param {string} options.i2pKey When set this i2p key will be used to host the service. If not set a new i2p key will be generated. Defaults to `null`
35
-
* @param {boolean} options.wsEnabled When true the server will host a dataparty websocket service. Defaults to `true`
37
+
* @param {boolean} [options.wsEnabled=true] When true the server will host a dataparty websocket service. Defaults to `true`
36
38
* @param {Integer} options.wsPort Port for the websocket service to listen on. Defaults to `null`, using the same port as the http server.
37
-
* @param {string} options.wsUpgradePath The path within the http server to host an upgradeable websocket. Defaults to `/ws`
39
+
* @param {string} [options.wsUpgradePath=/ws] The path within the http server to host an upgradeable websocket. Defaults to `/ws`
40
+
* @param {boolean} [options.mdnsEnabled=true] When true, the server will publish mDNS records advertising the service and party identity
38
41
* @param {module:Service.ServiceRunner} options.runner A pre-configured runner
0 commit comments