How to use the homebridge/lib/server.js.Server function in homebridge

To help you get started, we’ve selected a few homebridge examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github zeit / pkg / test / test-79-npm / homebridge / homebridge.js View on Github external
'use strict';

process.argv.push('--help');
require('homebridge/lib/cli.js'); // dont run. only load
var Server = require('homebridge/lib/server.js').Server;
var server = new Server();
if (server._api) { // eslint-disable-line no-underscore-dangle
  console.log('ok');
}