dedicatedworkerglobalscope

package
v1.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 31, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotImplemented                 = errors.New("Browser not implemented DedicatedWorkerGlobalScope")
	ErrNotADedicatedWorkerGlobalScope = errors.New("Object is not a DedicatedWorkerGlobalScope object")
)

Functions

func GetInterface

func GetInterface() js.Value

GetInterface get the JS interface of serviceworkerregistration

Types

type DedicatedWorkerGlobalScope

type DedicatedWorkerGlobalScope struct {
	workerglobalscope.WorkerGlobalScope
}

func NewFromJSObject

func NewFromJSObject(obj js.Value) (DedicatedWorkerGlobalScope, error)

func (DedicatedWorkerGlobalScope) Close

func (DedicatedWorkerGlobalScope) DedicatedWorkerGlobalScope_

func (d DedicatedWorkerGlobalScope) DedicatedWorkerGlobalScope_() DedicatedWorkerGlobalScope

func (DedicatedWorkerGlobalScope) Name

func (DedicatedWorkerGlobalScope) OnMessage

func (d DedicatedWorkerGlobalScope) OnMessage(handler func(m messageevent.MessageEvent)) (js.Func, error)

func (DedicatedWorkerGlobalScope) OnMessageError

func (d DedicatedWorkerGlobalScope) OnMessageError(handler func(e event.Event)) (js.Func, error)

func (DedicatedWorkerGlobalScope) PostMessage

func (d DedicatedWorkerGlobalScope) PostMessage(message string, transfer ...array.Array) error

type DedicatedWorkerGlobalScopeFrom

type DedicatedWorkerGlobalScopeFrom interface {
	DedicatedWorkerGlobalScope_() DedicatedWorkerGlobalScope
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL