gristlabs_grist-core/app/common/BootProbe.ts
Jordi Gutiérrez Hermoso 07b80b1110 BootProbes: add a websocket probe
This self-test isn't perfect because we're running it from the backend
instead of the frontend. Conceivably the backend might have trouble
resolving its own url. Eventually we should move this test or
something like it to something that executes in the frontend.
2024-05-17 09:23:13 -04:00

28 lines
539 B
TypeScript

import { SandboxInfo } from 'app/common/SandboxInfo';
export type BootProbeIds =
'boot-page' |
'health-check' |
'reachable' |
'host-header' |
'sandboxing' |
'system-user' |
'authentication' |
'websockets'
;
export interface BootProbeResult {
verdict?: string;
success?: boolean;
done?: boolean;
severity?: 'fault' | 'warning' | 'hmm';
details?: Record<string, any>;
}
export interface BootProbeInfo {
id: BootProbeIds;
name: string;
}
export type SandboxingBootProbeDetails = SandboxInfo;