WebServiceServer
Summary
Defines an HTTP server for the web service.
Constructor
Item Index
Properties
Methods
async
Syntax
async
(
-
callback
Summary
Sets errors routes.
Sets errors routes when all plugins are loaded to handle not found endpoints and errors.
Parameters:
-
callback
FunctionFunction to call when its done with:
- Error An error if something went wrong
onDatabaseAvailable
Syntax
onDatabaseAvailable
(
async
-
db
-
callback
Summary
Handles database available event.
It assures that the database is loaded and can be accessed.
Parameters:
-
db
DatabaseThe application database
-
callback
FunctionFunction to call when its done with:
- Error An error if something went wrong
onPluginLoaded
Syntax
onPluginLoaded
(
async
-
plugin
-
callback
Summary
Loads plugin.
startServer
Syntax
startServer
(
async
-
callback
Summary
Starts the HTTP server.
Parameters:
-
callback
FunctionFunction to call when it's done with :
- Error An error if something went wrong, null otherwise