vidiq
v0.4.0
Published
vidiq open server
Downloads
9
Readme
VidiQ Open Server
nodejs
needed to get started
not for productions until 1.0.0
- Install
npm i vidiq
- Make config
const config = {
secret: JWT_SECRET,
limit: 4,
path: '/socket',
libs: {
subtract: d => d[0] - d[1],
mult: d => d[0]*d[1]
}
};
- Require, set config, express and http-server
const app = require('express')();
const http = require('http').Server(app);
const vidiq = require('vidiq').server(config, http);
const port = 3000;
http.listen(port);