This project was bootstrapped with electron-quick-start-typescript.
- First run
npm install
- Add your Ditto AppID and token to
src/AppContainer.tsx
- Run
npm start
This sample enables Electron's Node.js integration and disables context isolation to allow using Node.js APIs from the renderer process. If your renderer process loads remote content, you should isolate Ditto to the main process or to a separate renderer process to avoid introducing security vulnerabilities. Read more about this in Electron's security docs.
If the Bluetooth Low Energy P2P transport is enabled, the application might crash in development when running on macOS due to missing permissions. In order to fix this, add your terminal app (or the app that you use to run this sample) to the list of apps allowed to use Bluetooth under Privacy & Security > Bluetooth in the System Settings app.
Please refer to the docs for instructions on how to enable Bluetooth Low Energy on Linux.