YaWebsocket class Null safety

Constructors

YaWebsocket()

Properties

delegate YaWebsocketDelegate?
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
isOpen Future<bool>
判断是否正在保持连接 [...]
read-only
platformVersion Future<String?>
获取操作系统版本信息
read-only
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

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 non-existent 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