Module

Aff.MessagePort

Package
purescript-workers
Repository
truqu/purescript-workers

#onMessage Source

onMessage :: forall msg e' e. MessagePort -> (msg -> Eff e' Unit) -> Aff (worker :: WORKER | e) Unit

Event handler for the message event

#onMessageError Source

onMessageError :: forall e' e. MessagePort -> (Error -> Eff e' Unit) -> Aff (worker :: WORKER | e) Unit

Event handler for the messageError event

#close Source

close :: forall e. MessagePort -> Aff (worker :: WORKER | e) Unit

TODO DOC

#start Source

start :: forall e. MessagePort -> Aff (worker :: WORKER | e) Unit

TODO DOC

Re-exports from MessagePort

#MessagePort Source