emit warning instead of printing it

This commit is contained in:
Mathias Buus 2014-03-28 00:34:37 +01:00
parent 586305cc8b
commit f6a17b14e3

View File

@ -137,7 +137,7 @@ Client.prototype._handleResponse = function (data, announce) {
var warning = data['warning message']
if (warning) {
console.warn(warning)
self.emit('warning', warning);
}
var interval = data.interval || data['min interval']