Socket
Book a DemoInstallSign in
Socket

stream-closer

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

stream-closer

An easy way to close streams on RS

latest
npmnpm
Version
1.0.9
Version published
Maintainers
1
Created
Source

Stream closer

A CLI tool for stopping RS streams

Dependencies

  • Install ffmpeg and have it available on the command line -- brew install ffmpeg

Install

npm install -g stream-closer  

Usage

You'll need your RS api token to use this tool. You can access it here: https://fot.reactive.live/admin/users/apitoken/

Close all streams:

stream-closer --token :your-rs-api-token

Close streams with a give tag:

stream-closer --token :your-rs-api-token -tag :your-tag

You can group your streams by giving them a tag. This, amoung other uses, will allow you to only close a targeted subset of streams. You can tag your streams at creation with a request like:

fetch(`https://fot.reactive.live/api/v1/streams/`, {
  method: "POST",
  headers: {
    "Content-Type": "application/json",
    Authorization: "Token :your-token",
  },
  body: JSON.stringify({ tag: "your-tag" }),
});

FAQs

Package last updated on 08 Dec 2020

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