connect(to:channelInitializer:)

    Specify the address to connect to for the TCP Channel that will be established.

    Bootstrap.swift:1211
    iOS
    13+
    macOS
    10.15+
    tvOS
    13+
    watchOS
    6+
    func connect<Output>(to address: SocketAddress, channelInitializer: @escaping (Channel) -> EventLoopFuture<Output>) async throws -> Output where Output : Sendable

    Parameters

    address

    The address to connect to.

    channelInitializer

    A closure to initialize the channel. The return value of this closure is returned from the connect method.

    Returns

    The result of the channel initializer.

    Other members in extension

    Type members

    Instance members

    Show obsolete interfaces (1)

    Hide obsolete interfaces