Module: violetSrvr

Launches and supports an Express.js based server to host the voice scripts.

(require("violetSrvr"))(prefix)

Initializes the server.
Parameters:
Name Type Description
prefix where the violet endpoints will be, for example, '/alexa'
Source:
Source:

Methods

(inner) createAndListen()

Core Method that launches the web server to listen for incoming requests
Source:

(inner) loadScript(scriptPath, name)

Loads Voice Scripts. Loading involves doing a require on the scripts, registering the scripts intents, and connecting it to the express router.
Parameters:
Name Type Description
scriptPath path to the script to be loaded (multiple scripts can be provided one after the other seperated by commas)
name app name for the script to be loaded under
Source:
Documentation generated by JSDoc 3.5.5 on Mon Jul 23 2018 23:46:45 GMT-0400 (EDT)