kue-admin-panel

0.1.3 • Public • Published

kue-admin-panel

npm version CircleCI

An admin panel of Kue based on WebSocket.

Installation

npm install kue-admin-panel

Screenshots

Example

more details...

const express = require('express');
const http = require('http');
const kue = require('kue');
const KueAdminPanel = require('kue-admin-panel');
 
const app = express();
const server = http.createServer(app);
const queue = kue.createQueue({
  redis: {
    host: 'localhost',
    port: 6379,
    auth: '',
    db: 1
  }
});
 
app.use('/kue', new KueAdminPanel({
  basePath: '/kue',
  verifyClient: (info, callback) => {
    // Do authorization for web socket.
    callback(true);
  },
  queue: queue,
  server: server
}));
 
// Launch server
server.listen(8000, 'localhost', () => {
  const {address, port} = server.address();
  console.log(`Server listening at http://${address}:${port}`);
});

Readme

Keywords

Package Sidebar

Install

npm i kue-admin-panel

Weekly Downloads

8

Version

0.1.3

License

MIT

Unpacked Size

2.11 MB

Total Files

61

Last publish

Collaborators

  • kelp404