Can I use just IPC without running a server?


#1

I want to create an electron app that solely uses IPC for communication between the main and renderer process. Is it possible to do this without running a server? Any gotchas I should be aware of?


#2

You mean like using the built-in ipcMain and ipcRenderer libraries? Doing it without a server is the standard way.


#3

Right! I’m still getting used to this electron environment I guess.
So when I first render the page, without a server, I’m guessing I could just call mainWindow.loadURL() with file:// instead of http://


#4

Yes, see the quick start:

http://electron.atom.io/docs/latest/tutorial/quick-start/