@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
|
@@ -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,
|
|
51
|
+
stompCollectorFactory(stomp.url, timelineSegmentDestination, credentials),
|
|
44
52
|
buses
|
|
45
53
|
);
|
|
46
54
|
}
|