Module

GlobalScope.Shared

Package
purescript-workers
Repository
truqu/purescript-workers

#name Source

name :: forall e. Eff (worker :: WORKER | e) String

Returns sharedWorkerGlobal’s name, i.e. the value given to the SharedWorker constructor. Multiple SharedWorker objects can correspond to the same shared worker (and SharedWorkerGlobalScope), by reusing the same name.

#applicationCache Source

applicationCache :: forall e. Eff (worker :: WORKER | e) ApplicationCache

The applicationCache attribute returns the ApplicationCache object for the worker.

#onConnect Source

onConnect :: forall e' e. (NonEmpty Array MessagePort -> Eff e' Unit) -> Eff (worker :: WORKER | e) Unit

Event handler for the connect event

Re-exports from ApplicationCache

#ApplicationCache Source

#APPCACHE Source

#update Source

update :: forall e. ApplicationCache -> Eff (appcache :: APPCACHE | e) Unit

#swapCache Source

swapCache :: forall e. ApplicationCache -> Eff (appcache :: APPCACHE | e) Unit

#abort Source

abort :: forall e. ApplicationCache -> Eff (appcache :: APPCACHE | e) Unit

Re-exports from GlobalScope

#onUnhandledRejection Source

onUnhandledRejection :: forall e' e. Eff e' Unit -> Eff (worker :: WORKER | e) Unit

#onRejectionHandled Source

onRejectionHandled :: forall e' e. Eff e' Unit -> Eff (worker :: WORKER | e) Unit

#onOnline Source

onOnline :: forall e' e. Eff e' Unit -> Eff (worker :: WORKER | e) Unit

#onOffline Source

onOffline :: forall e' e. Eff e' Unit -> Eff (worker :: WORKER | e) Unit

#onLanguageChange Source

onLanguageChange :: forall e' e. Eff e' Unit -> Eff (worker :: WORKER | e) Unit

#onError Source

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

#navigator Source

navigator :: forall e. Eff (worker :: WORKER | e) Navigator

#location Source

location :: forall e. Eff (worker :: WORKER | e) Location

#close Source

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