A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/webxdc/hello below:

webxdc/hello: Sample project with a simple implementation of the webxdc read and write APIs

Sample project with a simple implementation of the webxdc read and write APIs.

Demo (no server or installation required)
  1. Open index.html in your web browser
  2. Click 'Add Peer' to open as many peers as you like
  3. Type a message and press 'Send' to see the update in each peer. (For Safari you might need to check the setting under Develop > Disable Local File Restrictions.)

Simply copy webxdc.js from this repo beside your index.html and you are ready to go to develop and test your app in most browsers.

Bundle your app using ./create-xdc.sh your-app-name and send it to your friends 🙂

Further Hints and Troubleshooting

Due to the nature of most browsers and how they scope localStorage, each emulated peer will get the same localStorage.

To really test the storage usage of your Webxdc, bundle the app and test it in Delta Chat directly where all peers get their own localStorage. Alternatively, use the more advanced webxdc-dev tool.

Type-checking and completion

If you want to have type-checking and autocompletion you can use @webxdc/types package. Refer to https://webxdc.org/docs/faq/typing.html and https://github.com/webxdc/webxdc-types/ README for the documentation on setting it up.

To use the devtool in safari you need to disable the local file restrictions under Develop -> Disable Local File Restrictions.

After doing this you can use the dev tool simulator.

Make sure to reload (Cmd + R) all simulator tabs/windows to apply this setting. Without this option Add Peer seems to work (it opens a new instance), but the instances will not be able to communicate.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4