kue-admin-panel
v0.1.3
Published
An admin panel of Kue.
Downloads
6
Readme
kue-admin-panel
An admin panel of Kue based on WebSocket.
Installation
npm install kue-admin-panel
Screenshots
Example
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}`);
});