Skip to content

a1motion/sysmin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sysmin

Install

yarn add sysmin

Usage

const express = require('express')
const app = require('app')
const sysmin = require('sysmin')
const redis = require('ioredis')

app.use(sysmin.handler({
  client: new Redis(),
  server: 'SERVER_ID', // optional
  key: 'REDIS_PUB/SUB_KEY', // optional, must be same for handler and client
}))

app.use()

app.use('/metrics', sysmin.client({
  client: new Redis(),
  ws: sysmin.addWs(app), // adds websocket support to express
  key: 'REDIS_PUB/SUB_KEY', // optional, must be same for handler and client
}))

app.listen(3000)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published