mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-10 09:53:48 +00:00
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:
@@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user