JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 901
  • Score
    100M100P100Q97441F
  • License MIT

file processing with help of socket.io

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 License NPM version Dependency Status Build Status

File processing with help of socket.io.

Install

npm i socket-file --save

How 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',
    root: '/',      /* string or function       */
    size: '512000', /* max file size for patch  */
    authCheck: function(socket, success) {
    }
});

License

MIT