sendMessage(eventName, )Įmits an event to ProcessManager. It can be emitted by ProcessManager.broadcast. class: Client idĪn identifier of this client. If sendBounds is set(default true), the client sends a bounds object when browserWindow moves or resizes.Īnd when ProcessManager.restart() is called, the client recover the bounds stored at server. You can omit browserWindow in only rendererProcess. Once a client is created and connects the server, the client can receive events(e.g. The browserWindow should be an Electron browser-window instance. client.create(,, )Ĭreates a new Client object with browserWindow and connects to ProcessManager. broadcast(eventName, )īroadcasts a event to all clients. This method is useful for callback of your rendererProcess sourcecodes' change event. This method does not kill any Electron processes. Broadcasts reload event to all connected Client object if ids not set. A list of id of target client.Įmit reload event to target clients. This method is useful for callback of your browserProcess sourcecodes' change event. Kills Electron process if it exsists, and starts new one. Starts a server and Electron application process. Additional arguments used when create a process. If not hit, electron-connect uses electron-prebuilt installed globally.Ĭlass: ProcessManager start(, ).1.2.4 Published 9 months ago esbuild-serve-2. electron reload reloader livereload auto-reload live-reload refresh restart watch watcher. Simple auto-reloading for Electron apps during development. First, electron-connect searches electron-prebuilt installed locally. electron-reloader-ts, esbuild-serve-2, livefresh, gulp-livereload-event-onchange, gulp-webserver-ext, karma-webpack.If neither electron nor useGlobalElectron are set, electron-connect searches electron-prebuilt modules automatically. If set, show all electron-connect log in your prompt(default: false). A path to your package.json file(default: process.cwd()). If set, electron-connect use electron-prebuilt installed globally(default: false). Set it If you want to use your forked Electron. There are 6 other projects in the npm registry using electron-reloader. Start using electron-reloader in your project by running npm i electron-reloader. Latest version: 1.2.3, last published: 2 years ago. 'use strict' var app = require ( 'app' ) var BrowserWindow = require ( 'browser-window' ) var client = require ( 'electron-connect' ). Simple auto-reloading for Electron apps during development.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |