connect(unixDomainSocketPath:channelInitializer:)

Connect the DatagramChannel to the unixDomainSocketPath.

Bootstrap.swift:2081
iOS
13+
macOS
10.15+
tvOS
13+
watchOS
6+
func connect<Output>(unixDomainSocketPath: String, channelInitializer: @escaping (any Channel) -> EventLoopFuture<Output>) async throws -> Output where Output : Sendable

Parameters

unixDomainSocketPath

The path of the UNIX Domain Socket to connect to. path must not exist, it will be created by the system.

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.