Adapter class abstract

An interface for adapters that bridge Relic to specific server implementations.

Adapters are responsible for receiving incoming requests from a source (e.g., an HTTP server, a message queue), converting them into a standard AdapterRequest format, and then handing them off to the Relic core. They also handle sending back responses or managing hijacked connections.

Constructors

Adapter()

Properties

connectionsInfo → ConnectionsInfo
no setter
hashCode → int
The hash code for this object.
no setterinherited
port → int
The port this adapter is bound to.
no setter
requests → Stream<AdapterRequest>
A stream of incoming requests from the underlying source.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

close({bool force = false}) → Future<void>
Shuts down the adapter.
connect(AdapterRequest request, WebSocketCallback callback) → Future<void>
Establishes a web-socket connection for the given AdapterRequest.
hijack(AdapterRequest request, HijackCallback callback) → Future<void>
Hijacks the connection associated with the AdapterRequest.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
respond(AdapterRequest request, Response response) → Future<void>
Sends a Response back to the client for the given AdapterRequest.
toString() → String
A string representation of this object.
inherited

Operators

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