Package Exports
- socket-file
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (socket-file) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Socket-file
File processing with help of socket.io.
Install
npm i socket-file --saveHow to use?
var socketFile = require('socket-file'),
http = require('http'),
express = require('express'),
io = require('socket.io'),
app = express(),
server = http.createServer(app);
socket = io.listen(server),
server.listen(port, ip);
socketFile(socket, {
prefix: 'edward',
size: '512000' /* max file size for patch */
});License
MIT