sf

socket-file

File processing with help of socket.io

Showing:

Popularity

Downloads/wk

208

GitHub Stars

2

Maintenance

Last Commit

8mos ago

Contributors

1

Package

Dependencies

5

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Readme

Socket-file License NPM version Dependency Status Build Status

File processing with help of socket.io.

Install

npm i socket-file --save

How to use?

const socketFile = require('socket-file');

const http = require('http');
const express = require('express');
const io = require('socket.io');

const app = express();
const server = http.createServer(app);
const socket = io.listen(server);

server.listen(port, ip);

socketFile(socket, {
    prefix: 'edward',
    root: '/',      /* string or function       */
    size: '512000', /* max file size for patch  */
    auth: (accept, reject) => (username, password) => {
        accept();
    },
});

License

MIT

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100