mirror of
https://github.com/owncast/owncast.git
synced 2025-01-10 10:37:32 +03:00
16 lines
295 B
TypeScript
16 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,
|
||
|
};
|
||
|
}
|