ZeroNet class

Properties

channel IOWebSocketChannel
read / write
client Client
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
i int
read / write
invoked bool
read / write
isListening bool
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

close() → void
cmd(String cmdStr, {IOWebSocketChannel channelK, Map params = const {}, int id = 1, MessageCallback callback}) → void
connect(String site, {String ip = '127.0.0.1', String port = '43110', bool override = false}) Future<IOWebSocketChannel>
getWrapperKey(String url, {bool override = false}) Future<String>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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
shutDown({MessageCallback callback}) → void
siteInfo({MessageCallback callback}) → void
toString() String
A string representation of this object. [...]
inherited

Operators

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

Static Properties

instance ZeroNet
read-only
isInitialised bool
read-only
wrapperKey String
read / write

Constants

kCMD_PING → const String
'ping'
kCMD_PONG → const String
'pong'
kCMD_RESPONSE → const String
'response'