AgentWebSocketSurface class final

Default AgentSurfaceLink transport for another process.

Frames are JSON text. Clients send {"op":"invoke","envelope":{...}}. The server writes {"op":"observed","envelope":{...},"result":{...}} to every connected socket after each hub call, including HTTP and observed MCP calls.

Import this from package:intentcall_platform_sync/io.dart in VM or server code only.

Properties

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

Methods

close() → Future<void>
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

Static Methods

serve({required AgentSurfaceLink link, InternetAddress? address, int port = 0, String? protocolScheme, String owner = 'server', AgentLinkDirectory? directory}) → Future<AgentWebSocketSurface>

Constants

discoverPath → const String
path → const String