ServerTransportConnection class abstract
- Inheritance
-
- Object
- TransportConnection
- ServerTransportConnection
Constructors
- ServerTransportConnection.viaSocket(Socket socket, {ServerSettings? settings})
-
factory
-
ServerTransportConnection.viaStreams(Stream<
List< incoming, StreamSink<int> >List< outgoing, {ServerSettings? settings = const ServerSettings(concurrentStreamLimit: 1000)})int> > -
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
incomingStreams
→ Stream<
ServerTransportStream> -
Incoming HTTP/2 streams.
no setter
- onActiveStateChanged ← ActiveStateHandler
-
Sets the active state callback.
no getterinherited
-
onFrameReceived
→ Stream<
void> -
Stream which emits an event every time a ping is received on this
connection.
no setterinherited
-
onInitialPeerSettingsReceived
→ Future<
void> -
Future which completes when the first SETTINGS frame is received from
the peer.
no setterinherited
-
onPingReceived
→ Stream<
int> -
Stream which emits an event with the ping id every time a ping is received
on this connection.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
finish(
) → Future -
Finish this connection.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
ping(
) → Future -
Pings the other end.
inherited
-
terminate(
[int? errorCode]) → Future -
Terminates this connection forcefully.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited