YaWebsocket class

Constructors

YaWebsocket()

Properties

delegate YaWebsocketDelegate?
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
isOpen Future<bool>
判断是否正在保持连接
no setter
platformVersion Future<String?>
获取操作系统版本信息
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

close() Future<Map?>
关闭连接
connect(String uri, {String tag = "", String timeout = "10"}) Future<Map?>
使用 WebSocket 连接到 uri
eventChannelData(dynamic event) → dynamic
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
reconnect() Future<Map?>
重新连接 会重新连接上次连接过的webSocket连接
send(String? text) Future<Map?>
将消息 text 发送
toString() String
A string representation of this object.
inherited

Operators

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