mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Document main function in webapp
This commit is contained in:
@@ -160,3 +160,4 @@ WebApp.addUpdatedNotifyHook(({arch, manifest, runtimeConfig}) => {
|
||||
|
||||
{% apibox "WebApp.addUpdatedNotifyHook" %}
|
||||
{% apibox "addUpdatedNotifyHookCallback(options)" %}
|
||||
{% apibox "main" %}
|
||||
@@ -1360,6 +1360,13 @@ function runWebAppServer() {
|
||||
},
|
||||
});
|
||||
|
||||
/**
|
||||
* @name main
|
||||
* @locus Server
|
||||
* @summary Starts the HTTP server.
|
||||
* If `UNIX_SOCKET_PATH` is present Meteor's HTTP server will use that socket file for inter-process communication, instead of TCP.
|
||||
* If you choose to not include webapp package in your application this method still must be defined for your Meteor application to work.
|
||||
*/
|
||||
// Let the rest of the packages (and Meteor.startup hooks) insert connect
|
||||
// middlewares and update __meteor_runtime_config__, then keep going to set up
|
||||
// actually serving HTML.
|
||||
|
||||
Reference in New Issue
Block a user