Anonchat class

Main class to communicate with anonchat

Constructors

Anonchat.fromSocket(Socket socket)
Construct class from existing Socket

Properties

hashCode int
The hash code for this object.
no setterinherited
onMessage Stream<Message>
Fires when the new message is received
final
onRawBytes Stream<Uint8List>
Fires when the new raw bytes are received
final
onRawMap Stream<Map<String, dynamic>>
Fires when the new JSON map is received
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
socket Socket
Actual connection socket
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
sendMessage(Message message) Future<void>
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

connect({required String host, required int port}) Future<Anonchat>
Create a new TCP connection and construct class