diff --git a/index.js b/index.js index 25a80ab..ea0b059 100644 --- a/index.js +++ b/index.js @@ -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']