@@ -23,6 +23,8 @@ import { PartsHandler } from './collections/partsHandler'
2323import { PieceInstancesHandler } from './collections/pieceInstancesHandler'
2424import { AdLibsTopic } from './topics/adLibsTopic'
2525import { ActivePiecesTopic } from './topics/activePiecesTopic'
26+ import { PieceContentStatusesHandler } from './collections/pieceContentStatusesHandler'
27+ import { PackagesTopic } from './topics/packagesTopic'
2628
2729export interface CollectionHandlers {
2830 studioHandler : StudioHandler
@@ -40,6 +42,7 @@ export interface CollectionHandlers {
4042 adLibsHandler : AdLibsHandler
4143 globalAdLibActionsHandler : GlobalAdLibActionsHandler
4244 globalAdLibsHandler : GlobalAdLibsHandler
45+ pieceContentStatusesHandler : PieceContentStatusesHandler
4346}
4447
4548export class LiveStatusServer {
@@ -72,6 +75,7 @@ export class LiveStatusServer {
7275 const adLibsHandler = new AdLibsHandler ( this . _logger , this . _coreHandler )
7376 const globalAdLibActionsHandler = new GlobalAdLibActionsHandler ( this . _logger , this . _coreHandler )
7477 const globalAdLibsHandler = new GlobalAdLibsHandler ( this . _logger , this . _coreHandler )
78+ const pieceContentStatusesHandler = new PieceContentStatusesHandler ( this . _logger , this . _coreHandler )
7579
7680 const handlers : CollectionHandlers = {
7781 studioHandler,
@@ -89,6 +93,7 @@ export class LiveStatusServer {
8993 adLibsHandler,
9094 globalAdLibActionsHandler,
9195 globalAdLibsHandler,
96+ pieceContentStatusesHandler,
9297 }
9398
9499 for ( const handlerName in handlers ) {
@@ -100,12 +105,14 @@ export class LiveStatusServer {
100105 const activePlaylistTopic = new ActivePlaylistTopic ( this . _logger , handlers )
101106 const segmentsTopic = new SegmentsTopic ( this . _logger , handlers )
102107 const adLibsTopic = new AdLibsTopic ( this . _logger , handlers )
108+ const packageStatusTopic = new PackagesTopic ( this . _logger , handlers )
103109
104110 rootChannel . addTopic ( StatusChannels . studio , studioTopic )
105111 rootChannel . addTopic ( StatusChannels . activePlaylist , activePlaylistTopic )
106112 rootChannel . addTopic ( StatusChannels . activePieces , activePiecesTopic )
107113 rootChannel . addTopic ( StatusChannels . segments , segmentsTopic )
108114 rootChannel . addTopic ( StatusChannels . adLibs , adLibsTopic )
115+ rootChannel . addTopic ( StatusChannels . packages , packageStatusTopic )
109116
110117 const wss = new WebSocketServer ( { port : 8080 } )
111118 wss . on ( 'connection' , ( ws , request ) => {
0 commit comments