Compare View
Commits (2)
Changes
Showing 3 changed files Side-by-side Diff
config.sample.json
... | ... | @@ -9,6 +9,13 @@ |
9 | 9 | "terminal_name": "PLEASE_CHANGE_ME", |
10 | 10 | "password": "PLEASE_CHANGE_ME" |
11 | 11 | }, |
12 | + "push_server": { | |
13 | + "apikey": "PLEASE_CHANGE_ME", | |
14 | + "advice": { | |
15 | + "port": 14283, | |
16 | + "url": "http://PLEASE_CHANGE_ME:14283/apikey/PLEASE_CHANGE_ME/advice" | |
17 | + } | |
18 | + }, | |
12 | 19 | "remote_products": { |
13 | 20 | "XL5": "XJ5", |
14 | 21 | "XL10": "XJ10", |
index.js
... | ... | @@ -9,5 +9,7 @@ const matrix = require('komodo-sdk/matrix'); |
9 | 9 | |
10 | 10 | const pullgw = require('komodo-sdk/gateway/pull'); |
11 | 11 | const partner = require('./lib/partner'); |
12 | +const adviceServer = require('komodo-sdk/gateway/advice-push-server'); | |
12 | 13 | |
13 | 14 | pullgw.setPartner(partner); |
15 | +adviceServer.setPartner(partner); |