Interface Handshake<TSink>

Type Parameters

Hierarchy

  • Handshake

Properties

read: (() => Promise<undefined | Uint8ArrayList>)

Type declaration

reader: Reader
rest: (() => Source<TSink>)

Type declaration

stream: Duplex<AsyncGenerator<Uint8Array | Uint8ArrayList, any, unknown>, Source<TSink>, Promise<void>>
write: ((data: TSink) => void)

Type declaration

    • (data: TSink): void
    • Parameters

      • data: TSink

      Returns void

writer: Pushable<TSink, void, unknown>