BuildBot

Web to Desktop

Preload & IPC

Lesson 2 of 5

Preload scripts and contextBridge expose a narrow, hand-picked API to the page, and invoke/handle carries requests to main and answers back.

What you'll learn

  • Expose a minimal API to the page with a preload script and contextBridge
  • Round-trip requests with ipcRenderer.invoke and ipcMain.handle
  • Understand why nodeIntegration stays off and contextIsolation stays on
Members only

A free account unlocks this lesson and every other one.

Runnable challenges, knowledge checks, and progress that syncs across your devices. No card needed.

Not sure yet? Try the free lesson first: Main and renderer