How can I communicate with the existing Vue cli project #738

Closed
opened 2026-01-29 16:47:21 +00:00 by claunia · 1 comment
Owner

Originally created by @lzb949838390 on GitHub (Dec 18, 2021).

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.

Originally created by @lzb949838390 on GitHub (Dec 18, 2021). 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.
claunia added the question label 2026-01-29 16:47:21 +00:00
Author
Owner

@danatcofo commented on GitHub (Dec 18, 2021):

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 commented on GitHub (Dec 18, 2021): 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.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/Electron.NET#738