1.1.0 • Published 5 years ago

sysmin v1.1.0

Weekly downloads
1
License
MIT
Repository
-
Last release
5 years ago

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)
1.1.0

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago