JsonSocket class

A TCP socket implementation that encodes and decodes messages as JSON.

Inheritance

Constructors

JsonSocket()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
server ServerSocket?
The underlying server socket.
getter/setter pairinherited
status Stream<TcpEvents>
Stream of TCP events.
no setterinherited

Methods

close() Future<void>
Closes all active connections.
inherited
init(InternetAddress address, int port) Future<void>
Initializes the TCP socket server.
inherited
listen(Future<ResponsePacket?> onData(MessagePacket data)) Future<void>
Listens for incoming connections and data.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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