1.0.0 • Published 3 years ago

streamlabs-obs-ts v1.0.0

Weekly downloads
6
License
MIT
Repository
github
Last release
3 years ago

Socket for Streamlabs obs

Streamlabs-obs-ts

An easy promise powered solution to access Streamlabs OBS (SLOBS) websocket connections.

How to use

Get Token

In Streamlabs OBS, go to Settings->Remote Control and click on the QR-Code and then on show details

Basic example

  const client = new Client();
  await client.connect('token');
  const scenes = await client.getScenes();
  client.subscribe('sceneSwitched', (event) => {
    console.log(event.data);
    client.unsubscribe('sceneSwitched');
  }).then(() => {
    scenes.get('Main').then((scene) => scene.activate());
  });