___ / _-_- _/\____ / __\\__ _-_-__ / ,-. -| / - ,-.`-. _-_- `( o )-- / --( o )-' `-' / `-'tunel (n): RESTful message tunneling over IPC.
Quick Example
Here’s the code for Electron’s main thread:
//// Main Thread// const electron = ;const channel = electronipcMain; const app registerChannel = ; ; // `app` API is similar to `express.js`app;
Here’s the cod for Electron’s renderer thread (i.e., the browser):
//// Renderer Thread// ; const doFetch = async { // `request` API is similar to `axios`. const response = await ; // Will log // `{ status: 200, data: { userName: 'robert', // fullName: 'Robert Denir Ona' }}` console;}; ;