Package org.teavm.jso.websocket
Class WebSocket
java.lang.Object
org.teavm.jso.websocket.WebSocket
- All Implemented Interfaces:
org.teavm.jso.JSObject
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract voidclose()abstract voidclose(int code) abstract voidstatic WebSocketstatic WebSocketstatic WebSocketabstract Stringabstract intabstract Stringabstract Stringabstract intabstract StringgetUrl()static booleanabstract voidonClose(EventListener<CloseEvent> eventListener) abstract voidonError(EventListener<Event> eventListener) abstract voidonMessage(EventListener<MessageEvent> eventListener) abstract voidonOpen(EventListener<Event> eventListener) abstract voidabstract voidsend(ArrayBuffer data) abstract voidsend(ArrayBufferView data) abstract voidsetBinaryType(String binaryType) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.teavm.jso.JSObject
cast
-
Constructor Details
-
WebSocket
public WebSocket()
-
-
Method Details
-
onClose
-
onError
-
onMessage
-
onOpen
-
create
-
create
-
create
-
close
public abstract void close() -
close
public abstract void close(int code) -
close
-
send
-
send
-
send
-
getBinaryType
-
setBinaryType
-
getBufferedAmount
public abstract int getBufferedAmount() -
getExtensions
-
getProtocol
-
getReadyState
public abstract int getReadyState() -
getUrl
-
isSupported
public static boolean isSupported()
-