Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do you embed WebAssembly? #2

Open
jafioti opened this issue Oct 20, 2021 · 2 comments
Open

How do you embed WebAssembly? #2

jafioti opened this issue Oct 20, 2021 · 2 comments

Comments

@jafioti
Copy link

jafioti commented Oct 20, 2021

Hi, I currently built a fairly large website in nearly the same way as you, with Rocket and Maud. So far, the experience has been good, and the site is performant.

I now want to add a page with a much more involved UI (basically a drag and drop graph interface) and I would like to use Seed to build a Web App and embed it. I'm trying to understand how exactly you were able to embed the web app in this, and I'm a little confused. What part of the site does the web app handle, and what parts are handled by the rocket server?

A little help would be super appreciated! Thanks

@AlterionX
Copy link
Owner

Not sure if you're still need help with this (this was a few months ago), but a little JS script is used here to load up the initial WASM kernel. While you can do this manually, it's usually generated by the wasm compiler.

You need to include this file as a script in your HTML document.

@AlterionX
Copy link
Owner

Oops didn't mean to close it.

@AlterionX AlterionX reopened this Jan 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants