CIMSocket class

Constructors

CIMSocket({required ValueChanged<Model> onMessageReceived, required ValueChanged<String> onConnectionStatusChanged})

Properties

channel ↔ WebSocket?
句柄
getter/setter pair
deviceInfoPlugin → DeviceInfoPlugin
设备信息
final
endCode String
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
onConnectionStatusChanged ValueChanged<String>
连接状态回调
final
onMessageReceived ValueChanged<Model>
消息回调
final
port int?
端口
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
uid String?
用户id
getter/setter pair
uri String?
地址
getter/setter pair
useSsl bool
是否使用SSL
getter/setter pair

Methods

connect() Future
disConnect() Future
init(String uri, int port, String uid, bool useSsl) Future
uri 地址 port 端口 uid 用户id useSsl 是否使用ssl
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
sendLoginMsg() Future
sendPong() Future
toString() String
A string representation of this object.
inherited

Operators

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