WebTransportServer class final
A listening WebTransport server.
Properties
-
certificateHashes
→ List<
WebTransportHash> -
The digest of the identity presented to clients.
final
-
handle
→ Pointer<
wt_server_t> -
The native handle, for use with the raw bindings.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- openConnections → int
-
Number of currently open connections.
no setter
- port → int
-
The port the server is listening on.
no setter
-
requests
→ Stream<
WebTransportSessionRequest> -
Incoming session requests, one at a time.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
accept(
) → Future< WebTransportSessionRequest> - Waits for the next incoming session request.
-
close(
{int closeCode = 0, String reason = ''}) → Future< void> - Closes every connection and stops accepting.
-
dispose(
) → void - Releases the native handle.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
reload(
WebTransportServerConfig config, {bool rebind = false}) → Future< void> - Reloads the TLS/transport configuration, optionally rebinding the socket.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
bind(
WebTransportServerConfig config) → Future< WebTransportServer> -
Binds a server using
config.