We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent edc4e70 commit 4762b2aCopy full SHA for 4762b2a
internal/static/src/app.js
@@ -6,17 +6,15 @@ import WebSocketClient from "./socket.js";
6
import "bootstrap/dist/js/bootstrap.min.js";
7
8
const dataRetentionSeconds = 600;
9
-let config;
10
export var allPlots;
11
12
let statsMgr;
13
export const connect = () => {
14
const uri = buildWebsocketURI();
15
- const client = new WebSocketClient(
+ new WebSocketClient(
16
uri,
17
// onConfig
18
(cfg) => {
19
- config = cfg;
20
allPlots = configurePlots(cfg);
21
statsMgr = new StatsManager(dataRetentionSeconds, cfg);
22
attachPlots(allPlots);
0 commit comments