Owns the host<->guest postMessage channel for one embedded TeXbrain iframe.

Usage: const client = new EditorBridgeClient(iframe.contentWindow, EDITOR_ORIGIN, { getThemeState: () => useThemeStore.getState(), getInitialDoc: () => ({ mainFile, files, projectName }), fs: new ApiFsResponder(...), onCompiled: (status, log, pdf) => { ... }, }); // later, on host theme change: client.pushTheme(); // ... client.sendCompile(); client.destroy(); // on unmount

Constructors

Methods