New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

obs-websocket-js

Package Overview
Dependencies
Maintainers
1
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

obs-websocket-js

OBS Websocket API in Javascript

  • 0.3.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1.9K
decreased by-26.43%
Maintainers
1
Weekly downloads
 
Created
Source

obs-websocket-js

Build Status

OBSWebSocket.JS allows Javascript-based connections to obs-websocket.
Based heavily on obs-remote, which is built for the older, obs-classic compatible plugin.

API Documentation

Distributable

Usage

Plain Javascript

Include the distributable file in the header of your HTML.

<script type='text/javascript' src='dist/obs-websocket.js'></script>

Then make use of it.

<script>
  var ws = new OBSWebSocket();

  // Bind some listeners by assigning functions, with params if applicable.
  ws.onConnectionOpened = function() {
    console.log('Connection Opened');

    // Send some requests by calling existing functions and passing callbacks.
    ws.getCurrentScene(function(err, data) {
      console.log(err, data);
    });
  };

  // Open the connection and Authenticate if needed. URL defaults to localhost:4444
  ws.connect(); // ws.connect('url', 'password');
</script>

NodeJS

npm install obs-websocket-js --save

Add the library to your application.

var OBSWebSocket = require('obs-websocket-js');
var obsWS = new OBSWebSocket();

obsWS.connect('url', 'password');

Contributing

  • Install node.js.
  • Clone the repo.
  • Go nuts.
  • Generate the concatenated Javascript file and API documentation by running the following...
npm install
npm install --only=dev
npm run build
  • Run grunt watch using the following. This will only update the distribution js file, not the markdown.
npm run grunt watch

Formatting Guidelines

  • 2 spaces rather than tabs.

Keywords

FAQs

Package last updated on 17 Feb 2017

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc