"use strict";module.exports=function(e){var t=require("../..");console.log("Connecting to "+e.host+"..."),t.host=e.host,t.clientName="ptp.js demo",t.onDisconnected=function(){console.log("Disconnected")},t.onError=function(e){console.error(e)},t.onConnected=function(){console.log("Connected"),e.onConnected()},t.connect()};