Skip to content

Latest commit

 

History

History
20 lines (14 loc) · 815 Bytes

webserver.js.md

File metadata and controls

20 lines (14 loc) · 815 Bytes

server

This module sets up a local webserver which is primarily used for secure communication with a BrowserWindow. Although it is possible to use IPC for this purpose, that would require enabling the nodeIntegration option for the window, which would expose the app to all manner of mischief. The webserver is an instance of express, configured for HTTPS with a self-signed cert.

start(mainApp, staticFolders) ⏏

Start the HTTPS server for the Main node.js process.

Kind: Exported function

Param Type Description
mainApp object Reference to the Electron app
staticFolders array List of folders that will be exposed from the webserver as static content