Required Instance Methodgrpc-swift 2.0.0GRPCCore

connect

Establish and maintain a connection to the remote destination.

ClientTransport.swift:52
func connect() async throws

Maintains a long-lived connection, or set of connections, to a remote destination. Connections may be added or removed over time as required by the implementation and the demand for streams by the client.

Implementations of this function will typically create a long-lived task group which maintains connections. The function exits when all open streams have been closed and new connections are no longer required by the caller who signals this by calling beginGracefulShutdown, or by cancelling the task this function runs in.