Skip to content

LinkFactory

autogen.beta.network.transport.link.LinkFactory #

Bases: Protocol

Produces LinkClient connections to one hub.

HubClient holds a factory (LocalLink in-process, WsLink over WebSocket) and calls :meth:client once to open its connection. LocalLink additionally exposes a hub attribute so an in-process HubClient can default to direct hub calls; a wire factory has no such attribute and the HubClient routes control-plane operations through RequestFrame RPC instead.

client #

client()

Open (or allocate) a fresh LinkClient to the hub.

Source code in autogen/beta/network/transport/link.py
def client(self) -> LinkClient:
    """Open (or allocate) a fresh ``LinkClient`` to the hub."""
    ...