DriftServer class Null safety

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(DatabaseConnection connection, {bool allowRemoteShutdown = false})
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.
read-only
hashCode int
The hash code for this object.
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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