mirror of
https://github.com/owncast/owncast.git
synced 2024-11-23 05:14:20 +03:00
17 lines
343 B
TypeScript
17 lines
343 B
TypeScript
export interface ServerStatus {
|
|
online: boolean;
|
|
viewerCount: number;
|
|
lastConnectTime?: Date;
|
|
lastDisconnectTime?: Date;
|
|
versionNumber?: string;
|
|
streamTitle?: string;
|
|
serverTime: Date;
|
|
}
|
|
|
|
export function makeEmptyServerStatus(): ServerStatus {
|
|
return {
|
|
online: false,
|
|
viewerCount: 0,
|
|
serverTime: new Date(),
|
|
};
|
|
}
|