Module
Web.Worker.DedicatedWorkerGlobalScope
- Package
- purescript-web-workers
- Repository
- purescript-web/purescript-web-workers
#onMessageError Source
onMessageError :: (MessageEvent -> Effect Unit) -> Effect Unit
fired when a worker receives a message that can't be deserialized.
#postMessage Source
postMessage :: forall msg. IsSendable msg => msg -> Effect Unit
sends a message to the main thread that spawned it.
#postMessage' Source
postMessage' :: forall msg. IsSendable msg => msg -> Array Transferable -> Effect Unit