Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface SharedWorker

Hierarchy

Index

Properties

EventTarget

EventTarget: { constructor: any; prototype: EventTarget }

Type declaration

onerror

onerror: ((this: AbstractWorker, ev: ErrorEvent) => any) | null

Readonly port

Returns sharedWorker's MessagePort object which can be used to communicate with the global environment.

Methods

addEventListener

dispatchEvent

  • dispatchEvent(event: Event): boolean
  • Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise.

    Parameters

    Returns boolean

removeEventListener

Generated using TypeDoc