- main.js, index.html
- in addition to the electron basics, these also include functionality for:
- responding to custom web protocol
- creating and listening via a socket.io server
- getting local os stats to pass to socket.io client
- in addition to the electron basics, these also include functionality for:
yarn init -y- in package.json
- change
index.jstomain.jsin package.json - add
"build": { "appId": "du-hello-electron-builder", "mac": { "category": "du.app.category.type" }, "protocols": { "name": "du-electron-protocol", "schemes": [ "du-scheme" ] } }
- add:
"scripts": { "start": "electron .", "pack": "electron-builder --dir", "dist": "electron-builder" }
- change
yarn add -D electron electron-builderyarn add os-utils express socket.ioyarn dist- installer and standalone exe are in dist dir
- run the installer
- first verify that custom web protocol is working
- navigate from browser to
du-scheme://foo?bar=baz - navigate from browser to
du-scheme://foo?one=two
- navigate from browser to
- now run web-protocol-react-socket-client to connect to socket server herein
-
Notifications
You must be signed in to change notification settings - Fork 0
daniel-um/web-protocol-electron-socket-server
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published