V2 socket store (#254)

* refactor: create socket utility
* refactor: ensure a single subscription to topics
* refactor: replace usages of socket object with subscription store handler
This commit is contained in:
Carlos Valente
2022-11-20 18:08:49 +01:00
committed by GitHub
parent edd983dfd6
commit c1f87736eb
24 changed files with 219 additions and 387 deletions
+4 -4
View File
@@ -136,7 +136,7 @@ export class EventTimer extends Timer {
nextEventId: this.nextEventId,
playback: this.state,
};
this.socket.send('ontime-feat-rundown', featureData);
this.socket.send('feat-rundown', featureData);
}
/**
@@ -149,7 +149,7 @@ export class EventTimer extends Timer {
selectedEventId: this.selectedEventId,
numEvents: this.rundown.length,
};
this.socket.send('ontime-feat-playbackcontrol', featureData);
this.socket.send('feat-playbackcontrol', featureData);
}
/**
@@ -164,7 +164,7 @@ export class EventTimer extends Timer {
selectedEventIndex: this.selectedEventIndex,
numEvents: this.rundown.length,
};
this.socket.send('ontime-feat-info', featureData);
this.socket.send('feat-info', featureData);
}
_broadcastFeatureCuesheet() {
@@ -175,7 +175,7 @@ export class EventTimer extends Timer {
numEvents: this.rundown.length,
titleNow: this.titles.titleNow,
};
this.socket.send('ontime-feat-cuesheet', featureData);
this.socket.send('feat-cuesheet', featureData);
}
/**