All Downloads are FREE. Search and download functionalities are using the official Maven repository.

elemental2.dom.DedicatedWorkerGlobalScope Maven / Gradle / Ivy

There is a newer version: 1.0.139
Show newest version
package elemental2.dom;

import elemental2.core.Transferable;
import jsinterop.annotations.JsFunction;
import jsinterop.annotations.JsPackage;
import jsinterop.annotations.JsProperty;
import jsinterop.annotations.JsType;

@JsType(isNative = true, namespace = JsPackage.GLOBAL)
public interface DedicatedWorkerGlobalScope extends WorkerGlobalScope {
  @JsFunction
  public interface OnmessageFn {
    Object onInvoke(MessageEvent p0);
  }

  @JsProperty
  DedicatedWorkerGlobalScope.OnmessageFn getOnmessage();

  void postMessage(Object message, Transferable[] transfer);

  void postMessage(Object message);

  @JsProperty
  void setOnmessage(DedicatedWorkerGlobalScope.OnmessageFn onmessage);

  void webkitPostMessage(Object message, Transferable[] transfer);

  void webkitPostMessage(Object message);
}