microsoft / electron-cse-hackoverflow-engagement

MIT License
2 stars 2 forks source link

Create electron-fiddle template: Message Channels for IPC #2

Open Ethan-Arrowood opened 3 years ago

Ethan-Arrowood commented 3 years ago

Description

This template should demonstrate electron app developer IPC message communication best practices. Electron Fiddle already has a basic IPC example, and it would be valuable to expand on this one. It would be good to change this to refer to the contextBridge docs as well.

Reference existing ipcMain documentation and communication example

Related survey responses:

Love electron, but i've always hunted forums and articles outside of electronjs.org to learn how to use anything, literally. Problem is docs lack proper detail, usually a sentence is given on some api method. With NO DARN examples at all. In fact, even though the docs are really bad, i think adding 1-3 example code usages is helpful alone. Take for ex the communication between guest renderer and main. Never explained right, no drawings or diagrams to visually explain, lack of examples and use-cases.

Maybe put an exemple for beginners to understand the two process of rendering

how to send messages between server and render its all very vaige

I would like to see more information for using ipc communication with a preload script

Acceptance Criteria