ModeratorElection/frontend/generated/jar-resources/vaadin-dev-tools/connection.d.ts

16 lines
452 B
TypeScript
Raw Normal View History

2024-06-06 15:45:46 +00:00
export declare enum ConnectionStatus {
ACTIVE = "active",
INACTIVE = "inactive",
UNAVAILABLE = "unavailable",
ERROR = "error"
}
export declare abstract class Connection {
static HEARTBEAT_INTERVAL: number;
status: ConnectionStatus;
onHandshake(): void;
onConnectionError(_: string): void;
onStatusChange(_: ConnectionStatus): void;
setActive(yes: boolean): void;
setStatus(status: ConnectionStatus): void;
}