server.io-static

0.0.5 • 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

62

Version

0.0.5

License

ISC

Unpacked Size

51.4 kB

Total Files

11

Last publish

Collaborators

  • softman65