mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2024-12-22 16:14:10 -08:00
Added WebSocket.send overrides to support typedarrays
This commit is contained in:
parent
3194a403b8
commit
4e0381950a
|
@ -21,6 +21,8 @@ import org.teavm.jso.JSProperty;
|
|||
import org.teavm.jso.dom.events.Event;
|
||||
import org.teavm.jso.dom.events.EventListener;
|
||||
import org.teavm.jso.dom.events.MessageEvent;
|
||||
import org.teavm.jso.typedarrays.ArrayBuffer;
|
||||
import org.teavm.jso.typedarrays.ArrayBufferView;
|
||||
|
||||
public abstract class WebSocket implements JSObject {
|
||||
@JSProperty("onclose")
|
||||
|
@ -52,6 +54,10 @@ public abstract class WebSocket implements JSObject {
|
|||
|
||||
public abstract void send(String data);
|
||||
|
||||
public abstract void send(ArrayBuffer data);
|
||||
|
||||
public abstract void send(ArrayBufferView data);
|
||||
|
||||
@JSProperty
|
||||
public abstract String getBinaryType();
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user