WhepSignaling class

Pure-HTTP WHEP signaling client (draft-ietf-wish-whep).

Sends an SDP offer via POST expecting 201 Created with an SDP answer, and sends DELETE to tear down the session on disconnect. Decoupled from flutter_webrtc so it can be unit-tested against a local fake server.

Constructors

WhepSignaling({Client clientFactory()?})
Creates a WhepSignaling client using an optional custom HTTP clientFactory.
WhepSignaling.pinned(String certSha256)
Creates an HTTPS signaling client pinned to the SHA-256 certificate fingerprint certSha256 (for self-signed robot TLS certificates).

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

close() → void
Closes the underlying HTTP client.
delete(Uri session, {String? token}) → Future<void>
Sends a best-effort DELETE to close session on the server.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
offer(Uri endpoint, String sdp, {String? token, Duration timeout = const Duration(seconds: 8)}) → Future<WhepAnswer>
Posts an SDP sdp offer to endpoint and returns the server's WhepAnswer.
toString() → String
A string representation of this object.
inherited

Operators

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