12 lines
650 B
JavaScript
12 lines
650 B
JavaScript
const { contextBridge, ipcRenderer } = require("electron");
|
|
|
|
contextBridge.exposeInMainWorld("deviceSimulator", {
|
|
configure: (input) => ipcRenderer.invoke("sim:configure", input),
|
|
probe: () => ipcRenderer.invoke("sim:probe"),
|
|
createConversation: () => ipcRenderer.invoke("sim:create-conversation"),
|
|
activateConversation: (input) => ipcRenderer.invoke("sim:activate-conversation", input),
|
|
getConversation: (conversationID) => ipcRenderer.invoke("sim:get-conversation", conversationID),
|
|
heartbeat: (input) => ipcRenderer.invoke("sim:heartbeat", input),
|
|
stopConversation: (input) => ipcRenderer.invoke("sim:stop-conversation", input),
|
|
});
|