connect(to:promise:)

    Send a connect event to the next outbound ChannelHandler in the ChannelPipeline. When the connect event reaches the HeadChannelHandler a SocketChannel will be connected.

    ChannelPipeline.swift:1647
    func connect(to address: SocketAddress, promise: EventLoopPromise<Void>?)

    Parameters

    address

    The address to connect to.

    promise

    The promise fulfilled when the socket is connected or failed if it cannot be connected.

    Other members in extension

    Types

    • struct RemovalToken

      A RemovalToken is handed to a RemovableChannelHandler when its removeHandler function is invoked. A RemovableChannelHandler is then required to remove itself from the ChannelPipeline. The removal process is finalized by handing the RemovalToken to the ChannelHandlerContext.leavePipeline function.

    Instance members