The SharedWorker constructor creates a SharedWorker object that executes the script at the specified URL.
A DOMString representing the URL of the script the worker will execute. It must obey the same-origin policy.
An optional argument that specifies an existing SharedWorkerGlobalScope.name — if this is specified then that SharedWorkerGlobalScope will be used as the scope for this shared worker.
Dispatches an Event at the specified EventTarget, invoking the affected EventListeners in the appropriate order.
The port property of the SharedWorker interface returns a MessagePort object used to communicate and control the shared worker.
Removes the event listener previously registered with EventTarget.