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
-
- @sealed
Constructors
- DriftServer(DatabaseConnection connection, {bool allowRemoteShutdown = false})
-
Creates a drift server proxying incoming requests to the underlying
connection
.factory
Properties
Methods
-
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