Update README and tests

This commit is contained in:
hydrabolt
2015-08-26 12:27:39 +01:00
parent 2cf2dd9a9f
commit fd3fd6faa2
4 changed files with 172 additions and 67 deletions

View File

@@ -73,7 +73,7 @@ var Client = (function () {
}, {
key: "debug",
value: function debug(message) {
console.log(message);
this.trigger("debug", message);
}
}, {
key: "on",
@@ -167,6 +167,7 @@ var Client = (function () {
callback(err);
reject(err);
} else {
self.websocket.close();
self.state = 4;
callback();
resolve();