WebAssembly Server

Build your normal app as an http server, but load it as a WebAssembly module or Service Worker

This is a module for Project Forge. It allows you to build your http server as normal, but load it as a WebAssembly module or Service Worker.

https://github.com/kyleu/projectforge/tree/master/module/wasmserver

License

Licensed under CC0

Usage

To use your app with only WebAssembly, no server process required, run ./bin/build/wasmserver.sh, then host the files in ./tools/wasmserver in an HTTP server (it won’t work with file:// urls, and requires SSL for servers other than localhost).

This is of limited utility, since ServiceWorkers aren’t allowed to set cookies or other forbidden headers, so the app is quite limited.