Skip to content

An open-source, self-hosted system for apps built with web technologies.

604 B
Raw Blame
import { type ProcessSnapshot } from "@server/core/link-manager/auth-manager/process-manager/process"
import Window from "./window"

/** One desktop counterpart of the server-authoritative client state. */
export default class ClientState {

    public readonly window: Window

    public readonly sandbox: boolean

    public readonly service: NonNullable<ProcessSnapshot["client"]>["service"]

    public constructor(window: Window, payload: NonNullable<ProcessSnapshot["client"]>) {

        this.window = window

        this.sandbox = payload.sandbox

        this.service = payload.service
    }
}