diff --git a/lib/airplay.js b/lib/airplay.js index b02e796..ea7c014 100644 --- a/lib/airplay.js +++ b/lib/airplay.js @@ -6,5 +6,5 @@ exports.createBrowser = function() { exports.Device = require('./airplay/device').Device; exports.connect = function(host, port, opt_pass) { // TODO: connect - throw 'not yet implemented'; + return new exports.Device(); }; diff --git a/lib/airplay/browser.js b/lib/airplay/browser.js index 29df8b1..e02c7e3 100644 --- a/lib/airplay/browser.js +++ b/lib/airplay/browser.js @@ -1,5 +1,5 @@ var events = require('events'); -var mdns = require('mdns'); +var mdns = require('mdns2'); var util = require('util'); var Device = require('./device').Device; diff --git a/package.json b/package.json index 557550a..b9cc3d6 100644 --- a/package.json +++ b/package.json @@ -20,7 +20,7 @@ "main": "./lib/airplay", "dependencies": { "plist": ">=0.2.1", - "mdns": ">=0.0.7", + "mdns2": ">=0.0.7", "bplist-parser": "0.0.4" }, "scripts": {},