Module

Web.Worker.SharedWorker

Package
purescript-web-workers
Repository
purescript-web/purescript-web-workers

#SharedWorker Source

#new Source

new :: String -> WorkerOptions -> Effect SharedWorker

creates a worker object that executes the script at the specified URL.

#onError Source

onError :: (Event -> Effect Unit) -> SharedWorker -> Effect Unit

fired when an error occurs in the worker.

Re-exports from Web.Worker.Options

#WorkerType Source

#WorkerOptions Source

type WorkerOptions = { name :: String, type :: WorkerType }

#Credentials Source