Module
Web.Worker.MessagePort
- Package
- purescript-web-workers
- Repository
- purescript-web/purescript-web-workers
#onMessage Source
onMessage :: (MessageEvent -> Effect Unit) -> MessagePort -> Effect Unit
#onMessageError Source
onMessageError :: (MessageEvent -> Effect Unit) -> MessagePort -> Effect Unit
#postMessage Source
postMessage :: forall msg. IsSendable msg => msg -> MessagePort -> Effect Unit
#postMessage' Source
postMessage' :: forall msg. IsSendable msg => msg -> Array Transferable -> MessagePort -> Effect Unit
Re-exports from Web.Worker.Types
#MessagePort Source
data MessagePort