AssemblyScript / examples

A collection of AssemblyScript examples.
https://assemblyscript.org
MIT License
287 stars 50 forks source link

Provide e2e browser sdk example #12

Open stagas opened 3 years ago

stagas commented 3 years ago

It is not obvious how to use @assemblyscript/loader with the browser sdk example, I had to download the loader separately but I see there are some instantiate bits in the dist sources but they're not exported or I can't figure out how to do it.

It would be helpful if we had a full(but simple) e2e example where the compiled binary gets instantiated and used using the loader and maybe also show some passing data back and forth to give the user a head start.

munrocket commented 2 years ago

Loader documentation is bad. Better to this one https://jtanaka.gitbook.io/guide/getting-started/using-the-loader Also I recommend to check as-bind, later you can use loader if as-bind will be limited for you.