GenClient class

Constructors

GenClient({String host = '0.0.0.0', int port = 8080, bool encrypt = true})

Properties

gen_socket GenSocket
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
logFn LogFunction
getter/setter pair
onCloseHandler ↔ dynamic Function(GenSocket gen_socket)
getter/setter pair
onConnectHandler ↔ dynamic Function(GenSocket gen_socket)
getter/setter pair
onMessageHandler ↔ dynamic Function(GenSocket gen_socket, String data)
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

disableLog() → void
enableLog() → void
log(String msg) → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onClose(dynamic onCloseHandler(GenSocket gen_socket)) → void
onConnect(dynamic onConnectHandler(GenSocket gen_socket)) → void
onMessage(dynamic onMessageHandler(GenSocket gen_socket, String data)) → void
start() Future<void>
toString() String
A string representation of this object.
inherited

Operators

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