ZeroNetWSIO class

Inheritance

Constructors

ZeroNetWSIO()

Properties

callbacks Map<int, MessageCallback>
final
channel ↔ WebSocketChannel?
getter/setter pair
client ↔ Client
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
i int
getter/setter pair
isListening bool
getter/setter pair
onEventMessage MessageCallback?
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
subscription StreamSubscription?
getter/setter pair

Methods

close() → void
cmd(String cmdStr, {dynamic params = const {}, int? id, MessageCallback? callback}) → void
override
cmdFuture(String cmdStr, {dynamic params = const {}}) Future<Map<String, dynamic>?>
override
connect(String site, {String ip = '127.0.0.1', String port = '43110', bool override = false, String? wrapperKey_, MessageCallback? onEventMessage}) Future<void>
override
connectResult(String site, {String ip = '127.0.0.1', String port = '43110', bool override = false, String? wrapperKey_, MessageCallback? onEventMessage}) Future<WebSocketChannel?>
getWrapperKey(String url, {bool override = false}) Future<String?>
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onMessage(dynamic message) → void
respond({int to = 1, int result = 1, int id = 2, MessageCallback? callback}) → void
response({int to = 1, int result = 1, int id = 2}) Map
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

wrapperKey String
getter/setter pair

Static Methods

registerWith() → void