jsnes/README.md

24 lines
809 B
Markdown
Raw Normal View History

2022-01-01 17:47:14 +00:00
# Webxdc Development Tool
2021-12-31 00:27:45 +00:00
2022-01-01 17:47:14 +00:00
this is a little tool to make development of webxdc apps easier.
2021-12-31 00:27:45 +00:00
2022-01-01 17:47:14 +00:00
for developing webxdc apps,
just copy the `webxdc.js` from this repo beside
2021-12-31 00:27:45 +00:00
your `index.html` and you are ready to go.
no server or installation required.
2022-01-01 17:47:14 +00:00
- include your `webxdc.js` to your `index.html` as usual
2021-12-31 00:27:45 +00:00
- open your `index.html` from your local disk in your browser,
tested with Firefox.
- the emulation layer will add an "add peer" button,
open as many peers as you like
- once you call sendUpdate() in on peer,
all peers will get the update with their update listeners.
2022-01-01 17:47:14 +00:00
keep in mind, when bundling your webxdc app, `webxdc.js` is not needed,
2021-12-31 00:27:45 +00:00
it will be provided by the target implementation.
note, that the api is not yet complete,
this is just a, maybe already useful, proof-of-concept for now.