Module

MessagePort

Package
purescript-workers
Repository
truqu/purescript-workers

#MessagePort Source

#onMessage Source

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

Event handler for the message event

#onMessageError Source

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

Event handler for the messageError event

#close Source

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

TODO DOC

#start Source

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

TODO DOC