server.io-static
v0.1.2
Published
Static file server with socket.io
Downloads
12
Readme
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}`
}
}
)