webxdc/clock-sync
17
0
Fork
You've already forked clock-sync
0
Clock synchronization example
  • JavaScript 91%
  • Shell 6.2%
  • HTML 2.8%
2024年11月15日 10:20:15 +00:00
create-xdc.sh Initial commit 2024年11月15日 10:20:15 +00:00
icon.png Initial commit 2024年11月15日 10:20:15 +00:00
index.html Initial commit 2024年11月15日 10:20:15 +00:00
LICENSE Initial commit 2024年11月15日 10:20:15 +00:00
manifest.toml Initial commit 2024年11月15日 10:20:15 +00:00
README.md Initial commit 2024年11月15日 10:20:15 +00:00
script.js Initial commit 2024年11月15日 10:20:15 +00:00
webxdc.d.ts Initial commit 2024年11月15日 10:20:15 +00:00
webxdc.js Initial commit 2024年11月15日 10:20:15 +00:00

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.