new server(appopt)
The HTTP server module used for starting Spark's server to serve webpage content.
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
app | Object | <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:
| Name | Type | Attributes | Description |
|---|---|---|---|
port | number | <optional> | The port number to listen to requests from |