Subscribe to our list to receive the latest updates on Node on Fire

Class: HTTPServer

HTTPServer

new HTTPServer()

The HTTP server module. Actually creates the web server.

Methods

start(argv)

Starts the HTTP server if no argv is supplied or if --web is provided.

E.g. in the Procfile:

web: node index.js --web
Parameters:
Name Type Description
argv Dictionary

The arguments passed to the process.

stop()

Stops the HTTP server by calling close() on the http server object.

Returns:
Type
Promise

Do you have any questions or comments on this page? Start a discussion below.

comments powered by Disqus
Subscribe to our list to receive the latest updates on Node on Fire