@dmitrymyadzelets/slip-stream

1.1.1 • Public • Published

slip-stream

RFC 1055 (SLIP) compliant encoding and decoding streams for Node.js

Why

Think about sending files as binary data over a WebSocket. The problem is to detect the end of the data. The SLIP solves it, and the streams just make it simple.

The client could be (preparation is omitted):

file.pipe(encoder).pipe(websocket)

And the server:

websocket.pipe(decoder).pipe(file)

The tests contain a complete example.

License

MIT

Package Sidebar

Install

npm i @dmitrymyadzelets/slip-stream

Weekly Downloads

1

Version

1.1.1

License

MIT

Unpacked Size

8.05 kB

Total Files

10

Last publish

Collaborators

  • dmitrymyadzelets