connect(unixDomainSocketPath:channelInitializer:)
Connect the DatagramChannel to the unixDomainSocketPath.
- 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.
pathmust 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
connectmethod.
Returns
The result of the channel initializer.