server.io-static

0.0.6 • Public • Published

EXPERIMENTAL LIBRARY

server.io-static

static server files with socket.io

Getting Started

npm i server server.io-static

Start

crea primero una carpeta /@domain en la raiz del proyecto con los ficheros estaticos

app.js

    require('server.io-static')({  
            domains:['localhost'], 
            port:8080,
            path: ( AppPathFile,domainPath)=>{
                return `./@domain/${domainPath}/${AppPathFile}`
            }
        }
    )   

Readme

Keywords

Package Sidebar

Install

npm i server.io-static

Weekly Downloads

5

Version

0.0.6

License

ISC

Unpacked Size

52.2 kB

Total Files

11

Last publish

Collaborators

  • softman65