Closed ghost closed 11 years ago
If the weather.js example is scaled down to:
var elknode = require('../index'); var temp = 'zero'; var elk = elknode.createConnection({ port: 2101 , host: '192.168.123.34'}); elk.on('connect', function(data) { elk.speak('outside temperature is ' + temp + ' degrees'); elk.disconnect(); });
This error occurs: index.js:70 msg.host = that._connection.address().address;
TypeError: Cannot read property 'address' of null
It seems that removing the 'request' function call is related to the issue.
Hmm, I'll test this over the weekend and see what's up.
oops, didn't mean to close it....
If the weather.js example is scaled down to:
var elknode = require('../index'); var temp = 'zero'; var elk = elknode.createConnection({ port: 2101 , host: '192.168.123.34'}); elk.on('connect', function(data) { elk.speak('outside temperature is ' + temp + ' degrees'); elk.disconnect(); });
This error occurs: index.js:70 msg.host = that._connection.address().address;
TypeError: Cannot read property 'address' of null
It seems that removing the 'request' function call is related to the issue.