Mercurial > code > home > repos > light9
comparison web/collector/Light9CollectorUi.ts @ 2384:ffa2f340ffdf
revive effectSequencer
author | drewp@bigasterisk.com |
---|---|
date | Mon, 13 May 2024 17:21:31 -0700 |
parents | 4556eebe5d73 |
children | ef3cde3e81e8 |
comparison
equal
deleted
inserted
replaced
2383:22c1b5c60a64 | 2384:ffa2f340ffdf |
---|---|
32 getTopGraph().then((g) => { | 32 getTopGraph().then((g) => { |
33 this.graph = g; | 33 this.graph = g; |
34 this.graph.runHandler(this.findDevices.bind(this), "findDevices"); | 34 this.graph.runHandler(this.findDevices.bind(this), "findDevices"); |
35 }); | 35 }); |
36 | 36 |
37 const ws = new ReconnectingWebSocket(location.href.replace("http", "ws") + "../service/collector/updates"); | 37 const ws = new ReconnectingWebSocket("ws://localhost:8200/service/collector/updates"); |
38 ws.addEventListener("message", (ev: any) => { | 38 ws.addEventListener("message", (ev: any) => { |
39 const outputAttrsSet = JSON.parse(ev.data).outputAttrsSet; | 39 const outputAttrsSet = JSON.parse(ev.data).outputAttrsSet; |
40 if (outputAttrsSet) { | 40 if (outputAttrsSet) { |
41 this.updateDev(outputAttrsSet.dev, outputAttrsSet.attrs); | 41 this.updateDev(outputAttrsSet.dev, outputAttrsSet.attrs); |
42 } | 42 } |