elemental2.dom.WebSocket Maven / Gradle / Ivy
package elemental2.dom;
import elemental2.core.ArrayBuffer;
import elemental2.core.ArrayBufferView;
import jsinterop.annotations.JsFunction;
import jsinterop.annotations.JsOverlay;
import jsinterop.annotations.JsPackage;
import jsinterop.annotations.JsType;
import jsinterop.base.Js;
@JsType(isNative = true, namespace = JsPackage.GLOBAL)
public class WebSocket implements EventTarget {
@JsFunction
public interface OncloseFn {
Object onInvoke(Event p0);
}
@JsFunction
public interface OnmessageFn {
Object onInvoke(MessageEvent