SharedWorker

SharedWorker

package js-html

extends EventTarget

Available on js

The SharedWorker interface represents a specific kind of worker that can be accessed from several browsing contexts, such as several windows, iframes or even workers. They implement an interface different than dedicated workers and have a different global scope, SharedWorkerGlobalScope.

Documentation SharedWorker by Mozilla Contributors, licensed under CC-BY-SA 2.5.

See:

Constructor

new (scriptURL:String, ?name:String)

Throws:

null DOMError

Variables

onerror:Function

read only port:MessagePort

Returns a MessagePort object used to communicate and control the shared worker.

© 2005–2016 Haxe Foundation
Licensed under a MIT license.
http://api.haxe.org/js/html/SharedWorker.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部