openclaw / extensions /whatsapp /src /runtime.ts
quinnz's picture
change port 18789 to 7860
3509093
Raw
History Blame Contribute Delete
334 Bytes
import type { PluginRuntime } from "openclaw/plugin-sdk";
let runtime: PluginRuntime | null = null;
export function setWhatsAppRuntime(next: PluginRuntime) {
runtime = next;
}
export function getWhatsAppRuntime(): PluginRuntime {
if (!runtime) {
throw new Error("WhatsApp runtime not initialized");
}
return runtime;
}