Documentation - v0.31.0
    Preparing search index...

    Function performHandshakeWithAbort

    • Run a post-connect handshake, closing the connection if abortSignal is aborted before it completes (which in turn makes any pending reads/writes inside the handshake reject)

      Type Parameters

      • Connection extends IClosable

      Parameters

      • conn: Connection
      • abortSignal: AbortSignal
      • handshake: () => Promise<void>

      Returns Promise<Connection>