Updated README and tests

This commit is contained in:
hydrabolt
2015-08-26 12:30:01 +01:00
parent 069a35fcd0
commit 76a01592b2
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();