@@ -23,6 +23,8 @@ import { PartsHandler } from './collections/partsHandler'
23
23
import { PieceInstancesHandler } from './collections/pieceInstancesHandler'
24
24
import { AdLibsTopic } from './topics/adLibsTopic'
25
25
import { ActivePiecesTopic } from './topics/activePiecesTopic'
26
+ import { PieceContentStatusesHandler } from './collections/pieceContentStatusesHandler'
27
+ import { PackagesTopic } from './topics/packagesTopic'
26
28
27
29
export interface CollectionHandlers {
28
30
studioHandler : StudioHandler
@@ -40,6 +42,7 @@ export interface CollectionHandlers {
40
42
adLibsHandler : AdLibsHandler
41
43
globalAdLibActionsHandler : GlobalAdLibActionsHandler
42
44
globalAdLibsHandler : GlobalAdLibsHandler
45
+ pieceContentStatusesHandler : PieceContentStatusesHandler
43
46
}
44
47
45
48
export class LiveStatusServer {
@@ -72,6 +75,7 @@ export class LiveStatusServer {
72
75
const adLibsHandler = new AdLibsHandler ( this . _logger , this . _coreHandler )
73
76
const globalAdLibActionsHandler = new GlobalAdLibActionsHandler ( this . _logger , this . _coreHandler )
74
77
const globalAdLibsHandler = new GlobalAdLibsHandler ( this . _logger , this . _coreHandler )
78
+ const pieceContentStatusesHandler = new PieceContentStatusesHandler ( this . _logger , this . _coreHandler )
75
79
76
80
const handlers : CollectionHandlers = {
77
81
studioHandler,
@@ -89,6 +93,7 @@ export class LiveStatusServer {
89
93
adLibsHandler,
90
94
globalAdLibActionsHandler,
91
95
globalAdLibsHandler,
96
+ pieceContentStatusesHandler,
92
97
}
93
98
94
99
for ( const handlerName in handlers ) {
@@ -100,12 +105,14 @@ export class LiveStatusServer {
100
105
const activePlaylistTopic = new ActivePlaylistTopic ( this . _logger , handlers )
101
106
const segmentsTopic = new SegmentsTopic ( this . _logger , handlers )
102
107
const adLibsTopic = new AdLibsTopic ( this . _logger , handlers )
108
+ const packageStatusTopic = new PackagesTopic ( this . _logger , handlers )
103
109
104
110
rootChannel . addTopic ( StatusChannels . studio , studioTopic )
105
111
rootChannel . addTopic ( StatusChannels . activePlaylist , activePlaylistTopic )
106
112
rootChannel . addTopic ( StatusChannels . activePieces , activePiecesTopic )
107
113
rootChannel . addTopic ( StatusChannels . segments , segmentsTopic )
108
114
rootChannel . addTopic ( StatusChannels . adLibs , adLibsTopic )
115
+ rootChannel . addTopic ( StatusChannels . packages , packageStatusTopic )
109
116
110
117
const wss = new WebSocketServer ( { port : 8080 } )
111
118
wss . on ( 'connection' , ( ws , request ) => {
0 commit comments