Skip to content

RFC 1055 (SLIP) compliant endoder and decoder streams for Node.js

Notifications You must be signed in to change notification settings

DmitryMyadzelets/slip-stream

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

RFC 1055 (SLIP) compliant endoder and decoder streams for Node.js

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published