public class WebSocket extends EventTarget
Objs.Constructor<T extends Objs>, Objs.Property<T>
Modifier and Type | Field and Description |
---|---|
Objs.Property<String> |
binaryType |
Objs.Property<Number> |
bufferedAmount |
Objs.Property<Number> |
CLOSED |
Objs.Property<Number> |
CLOSING |
Objs.Property<Number> |
CONNECTING |
Objs.Property<String> |
extensions |
Objs.Property<Function.A1<? super CloseEvent,? extends Object>> |
onclose |
Objs.Property<Function.A1<? super Event,? extends Object>> |
onerror |
Objs.Property<Function.A1<? super MessageEvent,? extends Object>> |
onmessage |
Objs.Property<Function.A1<? super Event,? extends Object>> |
onopen |
Objs.Property<Number> |
OPEN |
Objs.Property<String> |
protocol |
Objs.Property<Number> |
readyState |
Objs.Property<String> |
url |
Modifier | Constructor and Description |
---|---|
protected |
WebSocket(Objs.Constructor<?> c,
Object js) |
dispatchEvent, removeEventListener, removeEventListener, removeEventListener, removeEventListener
$as, $cast, $delete, $get, $js, $set, create, create, defineProperties, defineProperty, freeze, getOwnPropertyDescriptor, getOwnPropertyNames, getPrototypeOf, hasOwnProperty, isExtensible, isFrozen, isPrototypeOf, isSealed, keys, newObject, newObject, preventExtensions, propertyIsEnumerable, seal, toLocaleString, toString, valueOf
public Objs.Property<String> binaryType
public Objs.Property<Number> bufferedAmount
public Objs.Property<String> extensions
public Objs.Property<Function.A1<? super CloseEvent,? extends Object>> onclose
public Objs.Property<Function.A1<? super Event,? extends Object>> onerror
public Objs.Property<Function.A1<? super MessageEvent,? extends Object>> onmessage
public Objs.Property<Function.A1<? super Event,? extends Object>> onopen
public Objs.Property<String> protocol
public Objs.Property<Number> readyState
public Objs.Property<String> url
public Objs.Property<Number> CLOSED
public Objs.Property<Number> CLOSING
public Objs.Property<Number> CONNECTING
public Objs.Property<Number> OPEN
protected WebSocket(Objs.Constructor<?> c, Object js)
public String binaryType()
public Number bufferedAmount()
public String extensions()
public Function.A1<? super CloseEvent,? extends Object> onclose()
public Function.A1<? super Event,? extends Object> onerror()
public Function.A1<? super MessageEvent,? extends Object> onmessage()
public Function.A1<? super Event,? extends Object> onopen()
public String protocol()
public Number readyState()
public String url()
public Number CLOSED()
public Number CLOSING()
public Number CONNECTING()
public Number OPEN()
public void addEventListener(String type, EventListener listener, Boolean useCapture)
addEventListener
in class EventTarget
public void addEventListener(String type, EventListenerObject listener, Boolean useCapture)
addEventListener
in class EventTarget
public void addEventListener(String type, EventListener listener)
addEventListener
in class EventTarget
public void addEventListener(String type, EventListenerObject listener)
addEventListener
in class EventTarget
public void addEventListener(Void type, Function.A1<? super Event,? extends Object> listener, Boolean useCapture)
public void addEventListener(Void type, Function.A1<? super Event,? extends Object> listener)
public void close(double code, String reason)
public void close()
public void close(double code)
public void send(Object data)
Copyright © 2018. All rights reserved.