@yarkivaev/scada 2.6.11 → 2.6.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yarkivaev/scada",
3
- "version": "2.6.11",
3
+ "version": "2.6.12",
4
4
  "description": "SCADA domain objects, state persistence, and plant monitoring",
5
5
  "repository": {
6
6
  "type": "git",
@@ -30,6 +30,14 @@ function timelineBusesInPlant(p) {
30
30
  return buses;
31
31
  }
32
32
 
33
+ /**
34
+ * STOMP destination for live HMI timeline segments.
35
+ *
36
+ * @example
37
+ * stompSource(url, timelineSegmentDestination, collector, credentials);
38
+ */
39
+ export const timelineSegmentDestination = '/exchange/scada.segments/#';
40
+
33
41
  function wireTimelineSegments(stomp, plant) {
34
42
  if (!stomp || !stomp.url) {
35
43
  return undefined;
@@ -40,7 +48,7 @@ function wireTimelineSegments(stomp, plant) {
40
48
  }
41
49
  const credentials = { login: stomp.login, passcode: stomp.passcode, host: stomp.host };
42
50
  return stompTimelineSegments(
43
- stompCollectorFactory(stomp.url, '/exchange/scada.segments', credentials),
51
+ stompCollectorFactory(stomp.url, timelineSegmentDestination, credentials),
44
52
  buses
45
53
  );
46
54
  }