DriftServer class abstract

Serves a drift database connection over any two-way communication channel.

Users are responsible for creating the underlying stream channels before passing them to this server via serve. A single drift server can safely handle multiple clients.

Annotations

Constructors

DriftServer(QueryExecutor connection, {bool allowRemoteShutdown = false, bool closeConnectionAfterShutdown = true})
Creates a drift server proxying incoming requests to the underlying connection.
factory

Properties

done Future<void>
A future that completes when this server has been shut down.
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tableUpdateNotifications Stream<NotifyTablesUpdated>
A stream of table update notifications sent from clients to this server.
no setter

Methods

dispatchTableUpdateNotification(NotifyTablesUpdated notification) → void
Forwards the notification for updated tables to all clients.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
serve(StreamChannel<Object?> channel, {bool serialize = true}) → void
Starts processing requests from the channel.
shutdown() Future<void>
Shuts this server down.
toString() String
A string representation of this object.
inherited

Operators

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