diff options
| author | James Barnett <james.barnett@fivium.co.uk> | 2018-04-08 17:25:47 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-04-08 17:25:47 +0100 |
| commit | eb0185c03f8d5b68949798e8040b42a203b040a2 (patch) | |
| tree | 86da8449b0c92ec29a15baffe3e7bd8ebd34488e /package.json | |
| parent | 954aff49707738e660e92e0418c31b1ec78a85a8 (diff) | |
| parent | 4ec37af74fc77f7381d7c5c3b2560c8726f75ffa (diff) | |
| download | tplink-energy-monitor-0.2.tar.xz tplink-energy-monitor-0.2.zip | |
Merge pull request #1 from jamesbarnett91/websocketsv0.2
Switch from http polling to websockets
Diffstat (limited to 'package.json')
| -rw-r--r-- | package.json | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/package.json b/package.json index 41b6569..b97fe2e 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ "name": "James Barnett" }, "scripts": { - "start": "node ./bin/www", + "start": "node ./app.js", "dist": "pkg . --out-path ./dist" }, "dependencies": { @@ -19,13 +19,14 @@ "http-errors": "~1.6.2", "morgan": "~1.9.0", "tplink-smarthome-api": "0.22.0", - "moment": "2.22.0" + "moment": "2.22.0", + "express-ws": "3.0.0" }, "devDependencies": { "pkg": "4.3.1" }, "bin" : { - "tplink-monitor": "./bin/www" + "tplink-monitor": "./app.js" }, "pkg": { "scripts": "node_modules/hbs/lib/hbs.js", |