-
Notifications
You must be signed in to change notification settings - Fork 135
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Rob Moffat <[email protected]>
- Loading branch information
Showing
21 changed files
with
496 additions
and
2,680 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,37 @@ | ||
# fdc3-for-the-web | ||
Proof of concept of FDC3 for the web | ||
# FDC3 For The Web | ||
|
||
This is a minimal proof-of-concept for FDC3 For the Web. | ||
|
||
## To Run | ||
|
||
1. From the Command Line: | ||
``` | ||
yarn install | ||
yarn vite dev | ||
``` | ||
2. Point browser at http://localhost:5000/static/da/ | ||
3. This is your dummy desktop agent, which has two apps you can launch: | ||
- App1 Can Broadcast via FDC3. | ||
- App2 Listens. | ||
4. Launch the apps, press the button, watch messages pass between them. | ||
## What This Project Contains | ||
- In `\lib`: A minimal implementation called `webc3.ts`. This relies on the `post-message` strategy for communicating between apps and the desktop agent. This supports two functions: | ||
- `supply`: Called by the desktop agent on startup, allows it to supply FDC3 APIs to apps when they ask for one. | ||
- `load`: Called (with options) by an FDC3 Aoo to retrieve the API. | ||
- In `\demo`: A fixture for demonstrating the above, containing two apps, `app1` and `app2` and a rudimentary `dummy-desktop-agent` all of which use the `webc3.ts` library. | ||
## Notes | ||
- Since this uses Vite, you can modify the code and see it running the browser immediately. | ||
- This currently only supports FDC3 2.0 | ||
Oops, something went wrong.