server

new server(appopt)

The HTTP server module used for starting Spark's server to serve webpage content.

Parameters:
NameTypeAttributesDescription
appObject<optional>

Reference to instantiated express app that server module can interface on

Events

listen

Makes the app server listen to requests to the given port

Parameters:
NameTypeAttributesDescription
portnumber<optional>

The port number to listen to requests from