owncast/web/interfaces/server-status.model.ts

16 lines
295 B
TypeScript
Raw Normal View History

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