An implementation of ITlsConnection using Deno's connectTls function

Hierarchy

  • BaseConnection<Deno.TlsConn>
    • TlsConnection

Implements

Constructors

  • Parameters

    • conn: TlsConn

      Underlying connection

    • handshake: null | TlsHandshakeInfo = null

      TLS handshake info (if available)

    Returns TlsConnection

Properties

conn: TlsConn

Underlying connection

handshake: null | TlsHandshakeInfo = null

TLS handshake info (if available)

Accessors

Methods

  • Read data from the underlying source into the provided Uint8Array, up to the length of the array, and return the number of bytes read.

    If there are no bytes available currently, the implementation is supposed to wait until at least one byte is available, and only then resolve the promise. Resolving the promise with a zero-length Uint8Array is marking the end of the source.

    Parameters

    • into: Uint8Array

    Returns Promise<number>

    Uint8Array containing the bytes that were read.

  • Write bytes to the underlying stream, resolving once the write is complete

    Parameters

    • bytes: Uint8Array

    Returns Promise<void>