Skip to content

Commit

Permalink
Merge branch 'master' into request-cache-strategy
Browse files Browse the repository at this point in the history
  • Loading branch information
unlikelyzero authored Jan 30, 2024
2 parents 8d8ffb6 + ef505ad commit 839cf0b
Show file tree
Hide file tree
Showing 3 changed files with 155 additions and 121 deletions.
4 changes: 3 additions & 1 deletion example/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ const config = {
"yamcsUserEndpoint": "http://localhost:9000/yamcs-proxy/api/user/",
"yamcsInstance": "myproject",
"yamcsProcessor": "realtime",
"yamcsFolder": "myproject"
"yamcsFolder": "myproject",
"throttleRate": 1000,
"maxBatchSize": 15
};
const STATUS_STYLES = {
"NO_STATUS": {
Expand Down
5 changes: 4 additions & 1 deletion src/openmct-yamcs.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,12 @@ export default function install(
openmct.telemetry.addProvider(historicalTelemetryProvider);

const realtimeTelemetryProvider = new RealtimeProvider(
openmct,
configuration.yamcsWebsocketEndpoint,
configuration.yamcsInstance,
configuration.yamcsProcessor
configuration.yamcsProcessor,
configuration.throttleRate,
configuration.maxBatchSize
);
openmct.telemetry.addProvider(realtimeTelemetryProvider);
realtimeTelemetryProvider.connect();
Expand Down
Loading

0 comments on commit 839cf0b

Please sign in to comment.