CRDTSocketClient class abstract

Interface for the CRDT client

Implementers

Constructors

CRDTSocketClient.new({List<ClientSyncPlugin>? plugins})
Constructor

Properties

author → PeerId
The peer ID
no setter
connectionStatus Stream<ConnectionStatus>
Stream of connection status changes between client and server
no setter
connectionStatusValue ConnectionStatus
The current connection status
no setter
document → CRDTDocument
The local CRDT document
no setter
hashCode int
The hash code for this object.
no setterinherited
messages Stream<Message>
Stream of incoming server messages
no setter
plugins List<ClientSyncPlugin>
The client plugins
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sessionId String?
The session ID
no setter
unSyncChanges List<Change>
The changes that have not been sent to the server
no setter
unSyncChangesCount Stream<int>
Stream of the number of unSyncChanges
no setter

Methods

connect() Future<bool>
Connect the client to the server
disconnect() Future<void>
Disconnect the client from the server
dispose() → void
Dispose the client
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
requestSnapshot() Future<void>
Request a snapshot from the server
sendChange(Change change) Future<void>
Send a Change to the server
sendMessage(Message message) Future<void>
Send a Message to the server
toString() String
A string representation of this object.
inherited

Operators

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