This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

@evilkiwi/obs
TypeScript icon, indicating that this package has built-in type declarations

1.0.5 • Public • Published
NPM Discord Apache-2.0

OBS Studio WebSocket Client

@evilkiwi/obs provides a simple hook which can be used to connect to and consume the OBS Studio WebSocket API.

Installation

This package is available via NPM:

yarn add @evilkiwi/obs

# or

npm install @evilkiwi/obs

Usage

import { obs } from '@evilkiwi/obs';

const client = await obs({ debug: true });

// Asynchronous requests.
const allScenes = await client.request('GetSceneList');

// Subscriptions.
client.events.on('SwitchScenes', ({ sceneName }: any) => {
    console.log(`Active Scene was changed to ${sceneName}`);
});

To-do

  • Fully type the responses and provided methods from XJS
  • Allow running in NodeJS via ws

Package Sidebar

Install

npm i @evilkiwi/obs

Weekly Downloads

0

Version

1.0.5

License

GPL-3.0-only

Unpacked Size

175 kB

Total Files

11

Last publish

Collaborators

  • oyed