connect(to:promise:)

    Fires the (outbound) connect event through the ChannelPipeline. If the event hits the NIOAsyncTestingChannel which happens when it travels the ChannelPipeline all the way to the front, this will also set the NIOAsyncTestingChannel’s remoteAddress.

    AsyncTestingChannel.swift:613
    iOS
    13.0+
    macOS
    10.15+
    tvOS
    13.0+
    watchOS
    6.0+
    func connect(to address: SocketAddress, promise: EventLoopPromise<Void>?)

    Parameters

    address

    The address to fake-bind to.

    promise

    The EventLoopPromise which will be fulfilled when the fake-bind operation has been done.

    Other members in extension

    Types

    Type members

    Instance members

    Show implementation details (1)

    Hide implementation details