AcpWebSocketClientTransport class final

Experimental ACP client transport over WebSocket text frames.

Writes queue behind the platform connection future, so callers can write immediately after construction. Individual messages and JSON-RPC batches retain one-frame framing. Binary, malformed, primitive, and oversized input is never dispatched. The transport does not reconnect automatically.

Constructors

AcpWebSocketClientTransport(Uri endpoint, {AcpWebSocketAdapter? adapter, List<String> protocols = const <String>[], AcpHttpHeaders headers = const AcpHttpHeaders(), AcpHttpCookiePolicy cookiePolicy = AcpHttpCookiePolicy.include, AcpAffinityCookieStore? cookieStore, int maximumFrameBytes = 16 * 1024 * 1024, int maximumJsonNestingDepth = 128, JsonRpcCodec codec = const JsonRpcCodec(), bool originValidator(Uri endpoint)?, AcpRemoteDiagnosticHandler? onDiagnostic})
Starts connecting to endpoint.

Properties

done Future<void>
Completes when the channel and owned adapter are released.
no setter
endpoint Uri
Remote WebSocket endpoint.
final
hashCode int
The hash code for this object.
no setterinherited
isClosed bool
Whether this transport has stopped.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stream AcpDuplexStream<JsonRpcWireMessage>
Duplex JSON-RPC transport consumed by the connection layer.
latefinal

Methods

close() Future<void>
Closes the socket and local resources without reconnecting.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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