Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This API starts a Profound.js server instance.

Parameters

  1. Port (optional) - The port number to listen on; if not specified, the Profound.js configuration is used
  2. Host (optional) - The host name Profound.js will accept connections on; if not specified, the Profound.js configuration is used

Example

Code Block
languagejavascript
profoundjs.server.listen(8099);  // listen on port 8099
 
profoundjs.server.listen();  // listen on the port specified in the Profound.js configuration file