Changeset View
Changeset View
Standalone View
Standalone View
support/aphlict/server/aphlict_server.js
| Show First 20 Lines • Show All 46 Lines • ▼ Show 20 Lines | |||||
| }); | }); | ||||
| var WebSocket; | var WebSocket; | ||||
| try { | try { | ||||
| WebSocket = require('ws'); | WebSocket = require('ws'); | ||||
| } catch (ex) { | } catch (ex) { | ||||
| throw new Error( | throw new Error( | ||||
| 'You need to install the Node.js "ws" module for websocket support. ' + | 'You need to install the Node.js "ws" module for websocket support. ' + | ||||
| 'Usually, you can do this with `npm install -g ws`. ' + ex.toString()); | 'See "Notifications User Guide: Setup and Configuration" in the ' + | ||||
| 'documentation for instructions. ' + ex.toString()); | |||||
| } | } | ||||
| var ssl_config = { | var ssl_config = { | ||||
| enabled: (config['ssl-key'] || config['ssl-cert']) | enabled: (config['ssl-key'] || config['ssl-cert']) | ||||
| }; | }; | ||||
| // Load the SSL certificates (if any were provided) now, so that runs with | // Load the SSL certificates (if any were provided) now, so that runs with | ||||
| // `--test` will see any errors. | // `--test` will see any errors. | ||||
| ▲ Show 20 Lines • Show All 175 Lines • Show Last 20 Lines | |||||