Update communications list on event

This commit is contained in:
Eli Ribble 2026-03-14 18:13:51 +00:00
parent 94b2ff2e21
commit 1075e35bca
No known key found for this signature in database

View file

@ -55,6 +55,11 @@
init() { init() {
this.loadFromAPI(); this.loadFromAPI();
document.addEventListener("DOMContentLoaded", () => { document.addEventListener("DOMContentLoaded", () => {
SSEManager.subscribe("*", (e) => {
if (e.resource.startsWith("rmo:")) {
this.fetchCommunications();
}
});
const map = document.querySelector("map-multipoint"); const map = document.querySelector("map-multipoint");
map.on("load", () => { map.on("load", () => {
map.addLayer({ map.addLayer({