ClientSession class

Client session on server

  • Handle incoming messages from _connection
  • Send messages using _connection

Constructors

ClientSession.new({required String id, required TransportConnection connection, required CRDTServerRegistry serverRegistry, Compressor? compressor, List<ServerSyncPlugin> plugins = const []})
Constructor

Properties

events Stream<SessionEvent>
Session events stream
no setter
hashCode int
The hash code for this object.
no setterinherited
id String
Session ID
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
subscribedDocuments List<String>
The documents the client is subscribed to
no setter

Methods

close() Future<void>
Close the session
dispose() → void
Dispose the session
isSubscribedTo(String documentId) bool
Check if the client is subscribed to documentId
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
sendMessage(Message message) Future<void>
Send a message to the client
toString() String
A string representation of this object.
inherited

Operators

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