@jgaskins you already did something like that in Phoenix-style LiveView ;)
With LiveView it worked like that
- Browser
- HTTP communication
- Crystal Server with LiveView on remote Machine
But it also could work this way, and run everything in Browser, no need to implement any wrappers for Browser API.
- Browser
- stdin/stout communication with Crystal WASM in same Browser
- Crystal Server with LiveView compiled to WASM and run in same Browser
http://repl.it has Crystal REPL with Crystal compiled to WASM and stdin/stdout. So it should be possible to do all that.
The example from that topic the LiveView real estate Listing - could be run with the Crystal Server compiled to WASM and running inside of the browser. Without any access to Browser API.