owncast/web/interfaces/server-status.model.ts
2022-04-27 23:19:45 -07:00

15 lines
295 B
TypeScript

export interface ServerStatus {
online: boolean;
viewerCount: number;
lastConnectTime?: Date;
lastDisconnectTime?: Date;
versionNumber?: string;
streamTitle?: string;
}
export function makeEmptyServerStatus(): ServerStatus {
return {
online: false,
viewerCount: 0,
};
}