ConnectingInterface

A client-side handshake in progress. Await with `Self::connect`.

Inheritors

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
abstract suspend fun alpn(): ByteArray

Read the ALPN protocol from the peer's handshake data (resolves once the server has responded with its ServerHello).

Link copied to clipboard
abstract suspend fun connect(): Connection

Wait for the handshake to complete, producing a `Connection`.

Link copied to clipboard
abstract suspend fun remoteId(): EndpointId

The `EndpointId` this connection attempt targets.