nerdbank-streams
TypeScript icon, indicating that this package has built-in type declarations

2.10.72 • Public • Published

Nerdbank Streams

Enhanced streams for communication in-proc or across the Internet.

Features

  1. FullDuplexStream creates a pair of bidirectional streams for in-proc two-way communication; it also creates a single bidirectional stream from two unidirectional streams.
  2. MultiplexingStream allows you to split any bidirectional .NET Stream into many sub-streams (called channels). This allows two parties to establish just one transport stream (e.g. named pipe or web socket) and use it for many independent protocols. For example, one might set up JSON-RPC on one channel and use other channels for efficient binary transfers.
  3. Substreams, accessible via writeSubstream and readSubstream exported functions allow you to serialize data of an unknown length as part of a larger stream, and later deserialize it such in reading the substream, you cannot read more bytes than were written to it.

See our project README for more information.

/nerdbank-streams/

    Package Sidebar

    Install

    npm i nerdbank-streams

    Weekly Downloads

    52

    Version

    2.10.72

    License

    MIT

    Unpacked Size

    208 kB

    Total Files

    66

    Last publish

    Collaborators

    • andrewarnott