This package has been deprecated

Author message:

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

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

1.0.3 • Public • Published
NPM Discord Apache-2.0

XSplit Broadcaster XJS Client

@evilkiwi/xjs provides a simple hook which can be used to connect to and consume the XSplit Broadcaster XJS Plugin.

Installation

This package is available via NPM:

yarn add @evilkiwi/xjs

# or

npm install @evilkiwi/xjs

Usage

import { xjs, Subscription } from '@evilkiwi/xjs';

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

// Asynchronous requests.
const activeScene = await client.getActiveScene();

// Subscriptions.
client.events.on(Subscription.SceneChange, ({ id }: any) => {
    console.log(`Active Scene was changed to ${id}`);
});
client.subscribe(Subscription.SceneChange);

To-do

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

Package Sidebar

Install

npm i @evilkiwi/xjs

Weekly Downloads

0

Version

1.0.3

License

GPL-3.0-only

Unpacked Size

63.8 kB

Total Files

17

Last publish

Collaborators

  • oyed