Socket
Socket
Sign inDemoInstall

janus-cluster-manager

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

janus-cluster-manager

janus-cluster-manager =============


Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

janus-cluster-manager

Managing a cluster of janus instances. First Register janus instances through an HTTP endpoint, then let handlers do the necessary wiring. Currently there's only one handler available for the cargomedia/janus-gateway-rtpbroadcast plugin.

Installation

Install as npm package:

npm install janus-cluster-manager [-g]

Run service using:

bin/janus-cluster-manager --port <http-server-port>

Development

Clone project, install npm dependencies and run binary:

npm install
bin/janus-cluster-manager

API

Core

Register new instance

Used to register janus instances into the cluster. Each registered instance will also trigger events intercepted by handlers.

POST /register
Input
NameTypeDescription
idstringinstance identifier
datastringjson encoded string containing instance's extra data

Rtpbroadcast

Get edge server

Returns available edge server

GET /rtpbroadcast/edge-server
Response
{
  "id": "<server-id>",
  "webSocketAddress": "<web-socket-address>",
  "httpAddress": "<http-address>"
}

Testing

To run tests npm run-script test

Publishing

  • update package.json with a new version
  • release a new git tag with the updated package.json

After that the npm release should be done automatically. If it didn't happen then release it manually:

npm publish https://github.com/cargomedia/janus-cluster-manager/archive/<GitTagWithUpdatedPackageJson>.tar.gz

FAQs

Package last updated on 08 Sep 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc