openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
19 lines (18 loc) • 679 B
TypeScript
import type { WebChannelHealthState, WebChannelStatus } from "./types.js";
export declare function createWebChannelStatusController(statusSink?: (status: WebChannelStatus) => void): {
emit: () => void;
snapshot: () => WebChannelStatus;
noteConnected(at?: number): void;
noteInbound(at?: number): void;
noteWatchdogStale(at?: number): void;
noteReconnectAttempts(reconnectAttempts: number): void;
noteClose(params: {
at?: number;
statusCode?: number;
loggedOut?: boolean;
error?: string;
reconnectAttempts: number;
healthState: WebChannelHealthState;
}): void;
markStopped(at?: number): void;
};