ditto_live_web_alpha 0.0.1 copy "ditto_live_web_alpha: ^0.0.1" to clipboard
ditto_live_web_alpha: ^0.0.1 copied to clipboard

An alpha build of the Ditto SDK for Flutter Web

ditto_live_web_alpha #

Warning

This plugin is an early alpha which enables users to use Ditto on web platforms. Other platforms will not be supported by this package, that is covered by package:ditto_live

For more information, consult the docs for package:ditto_live

Installation #

  • Add the package to your pubspec.yaml, or run flutter pub add ditto_live_web_alpha
  • Edit the index.html of your app to load the Ditto core WASM library in the <body>:
<!-- before -->
  <body>
    <script src="flutter_bootstrap.js" async></script>
  </body>

<!-- after -->
  <body>
    <script type="module">
      import * as dittoJS from "/assets/packages/ditto_live_web_alpha/lib/assets/ditto.es6.js";
      window.dittoJS = dittoJS;
    </script>

    <script src="flutter_bootstrap.js" async></script>
  </body>

Known issues #

Certain features of package:ditto_live are not supported by this plugin. This plugin supports:

  • OnlinePlaygroundIdentity only
  • ditto.store.execute(/* ... */)
  • Observers
  • Sync Subscriptions
  • Small peer info
  • Logging (via DittoLogger)

For API docs about any of these features, consult the API docs for package:ditto_live. For docs about Ditto in general, go to <docs.ditto.live>

0
likes
0
points
33
downloads

Publisher

unverified uploader

Weekly Downloads

An alpha build of the Ditto SDK for Flutter Web

Homepage

License

unknown (license)

Dependencies

equatable, flutter, flutter_web_plugins, json_annotation, meta, plugin_platform_interface, web

More

Packages that depend on ditto_live_web_alpha