Skip to main content

Module client

Module client 

Source
Expand description

RpcClient: connect, hello, call, ping, close.

The client owns one TCP connection to the server. It runs a single background reader task that demultiplexes responses by Request.id into per-call oneshot channels, so concurrent in-flight calls on the same connection don’t block each other.

Auth is per-connection sticky per wire spec § 4: the first frame on a connection MUST be HELLO; every subsequent call inherits the auth state. The client tracks the authenticated / admin flags from the HELLO response so callers can introspect after the handshake.

Structs§

HelloPayload
HELLO request payload — sent as the FIRST frame on a connection.
HelloResponse
What the server returns for a successful HELLO.
RpcClient
One connection to a Vectorizer RPC server.

Enums§

RpcClientError
Errors the RpcClient can return.

Type Aliases§

Result
Result type alias.