npm i @hazae41/cadenas
DO NOT USE
This is experimental software in early development
- It has security issues
- Things change quickly
Features
Current features
- 100% TypeScript and ESM
- Zero-copy reading and writing
- Transport agnostic (HTTP, WebSocket)
- WebStreams based backpressure
- TLS 1.2
Upcoming Features
- TLS 1.3
- Zero RTT
Usage
import { TlsStream, Ciphers } from "@hazae41/cadenas"
const tcp: ReadableWritablePair<Uint8Array, Uint8Array> = ...
const ciphers = [Ciphers.TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384]
const tls = new TlsStream(tcp, { ciphers })