webxdc/clock-sync
Clock synchronization example
| create-xdc.sh | Initial commit | |
| icon.png | Initial commit | |
| index.html | Initial commit | |
| LICENSE | Initial commit | |
| manifest.toml | Initial commit | |
| README.md | Initial commit | |
| script.js | Initial commit | |
| webxdc.d.ts | Initial commit | |
| webxdc.js | Initial commit | |
Clock synchronization example
This WebXDC uses realtime channel API to display the clock synchronized across all devices.
This can be used as a base for games and applications that need the same in-game or simulation clock on all devices that does not depend on the wall clock being in sync.
Development
To run this WebXDC app in the emulator, simply open index.html in the browser.
To create an .xdc file that can be sent into the chat, execute
./create-xdc.sh.