CIMSocket class

Constructors

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

Properties

appVersion ↔ String?
app版本
getter/setter pair
channel ↔ WebSocket?
句柄
getter/setter pair
channelName ↔ String?
getter/setter pair
deviceid ↔ String?
设备id
getter/setter pair
deviceInfoPlugin → DeviceInfoPlugin
设备信息
final
devicename ↔ String?
设备名
getter/setter pair
endCode ↔ String
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
language ↔ String?
语言
getter/setter pair
onConnectionStatusChanged → ValueChanged<String>
连接状态回调
final
onMessageReceived → ValueChanged<Model>
消息回调
final
osVersion ↔ String?
系统版本
getter/setter pair
packageName ↔ String?
包名
getter/setter pair
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({String? devicename, String? appVersion, String? osVersion, String? packageName, String? deviceid, String? language, String? channelName}) → Future
连接 devicename 设备名 appVersion app版本 osVersion 系统版本 packageName 包名 deviceid 设备id language 语言 channelName 渠道名
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