aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/Main.tsx
diff options
context:
space:
mode:
authorMichael Foiani <sotech117@michaels-mbp-21.devices.brown.edu>2022-11-02 14:56:20 -0400
committerMichael Foiani <sotech117@michaels-mbp-21.devices.brown.edu>2022-11-02 14:56:20 -0400
commite9d5dbeef2bf1dab9dfb863d970b70b3074e3d0a (patch)
treee88de9ff3a05d094667a991cebf27006a0566d63 /src/client/views/Main.tsx
parent770f546a38d7ec827bff55fd0dd64b873a112180 (diff)
add basic heartbeat functinality througha ping/pong api cycle
Diffstat (limited to 'src/client/views/Main.tsx')
-rw-r--r--src/client/views/Main.tsx2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/client/views/Main.tsx b/src/client/views/Main.tsx
index f327f3184..a1d221af2 100644
--- a/src/client/views/Main.tsx
+++ b/src/client/views/Main.tsx
@@ -14,6 +14,7 @@ import { TrackMovements } from '../util/TrackMovements';
import { CollectionView } from './collections/CollectionView';
import { MainView } from './MainView';
import * as dotenv from 'dotenv'; // see https://github.com/motdotla/dotenv#how-do-i-use-dotenv-with-import
+import { PingManager } from '../util/PingManager';
dotenv.config();
AssignAllExtensions();
@@ -44,6 +45,7 @@ AssignAllExtensions();
new LinkManager();
new TrackMovements();
new ReplayMovements();
+ new PingManager();
ReactDOM.createRoot(document.getElementById('root')!).render(<MainView />);
}, 0);
})();