Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 6 Current »

Content Freeze

As of July 25th, 2023, there is a content freeze on this page.

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

Return Value

A boolean value indicating whether the current process is the server's master or worker process. True is returned for the worker process.

Examples

profoundjs.server.listen(8099);  // listen on port 8099
 
var isWorker = profoundjs.server.listen();  // listen on the port specified in the Profound.js configuration file
  • No labels