IWebSocket class abstract

Implementers

Constructors

IWebSocket()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

close() → dynamic
关闭 WebSocket 连接.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onClose(OnClose callback) → dynamic
WebSocket 关闭的回调.
onFailure(OnFailed callback) → dynamic
建立 WebSocket 连接失败的回调.
onMessage(OnMessage callback) → dynamic
接收到 WebSocket 消息的回调.
onSuccess(OnSuccess callback) → dynamic
建立 WebSocket 连接成功的回调.
open(String url) → dynamic
建立 WebSocket 连接.
send(String data) → dynamic
发送数据.
sendUint8List(Uint8List data) → dynamic
state() WebSocketState
获取连接状态.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited