vidiq

0.4.0 • Public • Published

VidiQ Open Server

License

nodejs needed to get started

not for productions until 1.0.0

  1. Install
npm i vidiq
  1. Make config
const config = {
    secret: JWT_SECRET,
    limit: 4,
    path: '/socket',
    libs: {
        subtract: d => d[0] - d[1],
        mult: d => d[0]*d[1]
    }
};
  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);

Readme

Keywords

Package Sidebar

Install

npm i vidiq

Weekly Downloads

1

Version

0.4.0

License

GPL-3.0

Unpacked Size

64.6 kB

Total Files

19

Last publish

Collaborators

  • argunov