streamlabs-obs-ts
v1.0.0
Published
An easy promise powered solution to access Streamlabs OBS (SLOBS) websocket connections.
Downloads
38
Maintainers
Readme
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());
});