mirror of
https://github.com/ElectronNET/Electron.NET.git
synced 2026-02-04 05:34:51 +00:00
How can I communicate with the existing Vue cli project #738
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.
@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.