UNPKG

harmonyhubjs-client

Version:

harmonyhubjs-client is a Node.JS library which allows you to interact with your Logitech Harmony Hub.

14 lines (10 loc) 313 B
var login = require('./login') var HarmonyClient = require('./harmonyclient') function createHarmonyClient (xmppClient) { return new HarmonyClient(xmppClient) } function getHarmonyClient (hubhost, hubport) { return login(hubhost, hubport) .then(createHarmonyClient) } module.exports = getHarmonyClient