Electron.NET icon indicating copy to clipboard operation
Electron.NET copied to clipboard

How can I communicate with the existing Vue cli project

Open lzb949838390 opened this issue 4 years ago • 1 comments

How can I communicate with the existing Vue cli project

demo-listens: Electron.IpcMain.On("testOn", (data) => {

        });

demo-send: Electron.IpcMain.Send(browserWindow, "test", new { });

It doesn't seem to work.

and It doesn't seem to work.

lzb949838390 avatar Dec 18 '21 02:12 lzb949838390

Those are sending and receiving from the browser window. You will need to write some JavaScript in the browser window to listens for those commands or send them respectively. It's not in internal communication path between parts of the aspnet app.

Look at the sample project in the repo, it will give you an start of how to do this.

danatcofo avatar Dec 18 '21 03:12 danatcofo