Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
See the README for more details.
While this package also compiles on non-WASM GHCs for convenience, running this function will immediately fail.
Synopsis
- run :: JSM () -> IO ()
- runWorker :: JSM () -> JSVal -> IO ()
- jsaddleScript :: ByteString
- data JSVal
Documentation
runWorker :: JSM () -> JSVal -> IO () Source #
Run the "worker part" of a JSM
action, interacting with the JSaddle JS
code via the given JSVal
, a message port like e.g. a web worker.
The messages at the connected message port must be dispatched using
jsaddleScript
.