connect


Description:

public async bool connect (Request hello_request, ClientBoot? boot = null)

Open the channel and send hello_request (e.g. Daemon.hello — built by the caller, not libocrpc).

When boot is set, empty path and flag fields are copied from this client, then ClientBoot.ensure_daemon runs before the socket opens. When boot is null, connect to socket_path only — no spawn.

Parameters:

hello_request

first request on the channel

boot

ollmfilesd spawn/probe, or null to attach only

Returns:

false when the client cannot talk to the server (see connect_error )