@intention-network/message-parser

0.0.4 • Public • Published

Intention network Stream

This is a class for Intention network for sending or receiving large data It sending or receiving by chunks

Usage

  import Stream from '@intention-network/stream';
  const channel = .. //This can be WebSocket or webRTC or any stream with send and onmessage methods
  const stream = Stream.from(channel);

Sending large data

  await stream.send(data);

receiving large data

  await stream.onmessage = (event) => {
    event.data // large data here;
  };

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.4
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.4
    0
  • 0.0.3
    0
  • 0.0.2
    0
  • 0.0.1
    0

Package Sidebar

Install

npm i @intention-network/message-parser

Weekly Downloads

0

Version

0.0.4

License

ISC

Unpacked Size

5.26 kB

Total Files

4

Last publish

Collaborators

  • millerrabin