Files
flipper/desktop/examples/headless-demo/README.md
Andrey Goncharov 7b31a1c6b6 Add headless-demo plugin and its usage example
Summary:
Next steps:
1. Refactor it TS for consistency
2. Remove it in favor of tic-tac-toe integration

Reviewed By: mweststrate

Differential Revision: D36102002

fbshipit-source-id: 7dc930f67bed636159a2ec433d7405ab6ee09f97
2022-05-10 05:13:24 -07:00

21 lines
652 B
Markdown

# headless-demo
**Experimental feature!**
Flipper can run plugins in a headless mode - expose their API over the wire. This is a simple example of how it might look like.
## Quick start
0. Run `yarn` from this repo to install dependencies
0. Start Flipper Server: from `desktop` folder run `yarn flipper-server`
0. Start an Android device
0. Run `yarn start` from this repo
## What happens under the hood
0. This script connects to Flipper via WebSockets
0. It fetches a list of devices
0. It fetches a list of available headless plugins for the Android device
0. It activates `headless-demo` plugin
0. It sends `increment` command to the plugin