2022-04-25 23:10:07 -07:00
|
|
|
export interface ServerStatus {
|
|
|
|
online: boolean;
|
|
|
|
viewerCount: number;
|
|
|
|
lastConnectTime?: Date;
|
|
|
|
lastDisconnectTime?: Date;
|
|
|
|
versionNumber?: string;
|
|
|
|
streamTitle?: string;
|
2022-06-02 14:23:51 -07:00
|
|
|
serverTime: Date;
|
2022-04-25 23:10:07 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
export function makeEmptyServerStatus(): ServerStatus {
|
|
|
|
return {
|
|
|
|
online: false,
|
|
|
|
viewerCount: 0,
|
2022-06-02 14:23:51 -07:00
|
|
|
serverTime: new Date(),
|
2022-04-25 23:10:07 -07:00
|
|
|
};
|
|
|
|
}
|