socket.io-file-stream
socket.io based file stream
This package has three components
-
### Client:
Only works on node environment bacause it's uses node
fs.creatReadStream
which makes sense for electron applications. -
### Web:
Web is for browsers baseds app the component uses FileReader api to read file blob.
-
### Server: This component handlers all the request from both
Web
andClient
//Client const client = socket filepath: '/path/to/file/music.mp3' data: //you pass your own data here name: 'music.mp3' client
//Web { let file = inputElementfiles0 const client = socket file: file data: name: filename client }
//Serverio
Please check the example folder for clue on how to use package until I'm able to document this package well