Sunday, 15 August 2010

javascript - Cannot read property "apply" of undefined when attempting to connect to MPD -



javascript - Cannot read property "apply" of undefined when attempting to connect to MPD -

i'm working on class project dealing mpd , i'm attempting utilize komponist. i'm running issue when trying connect running mpd server.

here have next code attempts create connection mpd server.

var komponist = require('komponist'); var client = komponist.createconnection(6600, 'localhost', function() { console.log('connected!'); });

however, when seek execute code chrome debugger's returning "cannot read property 'apply' of undefined " , it's pointing this:

mpdclient.prototype.connect = function() { var returnval = mpdclient.super_.prototype.connect.apply(this, arguments); //this line this.write = mpdclient.prototype.write; homecoming returnval; }

at first thought because mpd wasn't running or there connection issue mpd server running on localhost:6600 , can connect fine 3rd party client, i'm wondering if i'm missing library or other dev dependencies utilize komponist. i'm not familiar "super_" notation.

this shouldn't matter i'm using windows, it's windows binary of mpd. version of node 0.10.31

or, if else has recommendations existing javascript mpd client throw them way.

javascript node.js tcp npm mpd

No comments:

Post a Comment