Skip to content

WebSocketTransport

🛈 DocStrings

Configuration for WebSocket server transport.

Runs an ACP agent as a WebSocket server that accepts client connections. Each client connection gets its own agent instance.

Attributes:

Name Type Description
host str

Host to bind the WebSocket server to.

port int

Port for the WebSocket server.

Source code in src/aclientp/transports.py
@dataclass
class WebSocketTransport:
    """Configuration for WebSocket server transport.

    Runs an ACP agent as a WebSocket server that accepts client connections.
    Each client connection gets its own agent instance.

    Attributes:
        host: Host to bind the WebSocket server to.
        port: Port for the WebSocket server.
    """

    host: str = "localhost"
    port: int = 8765

:fa-brands-github: Show source on GitHub