Comparing version 0.6.1 to 0.6.2
@@ -26,2 +26,3 @@ var DDPClient, EventEmitter, WebSocket, | ||
this.received = __bind(this.received, this); | ||
this.handle_error = __bind(this.handle_error, this); | ||
this.send = __bind(this.send, this); | ||
@@ -56,2 +57,3 @@ this.opened = __bind(this.opened, this); | ||
this.socket.on("message", this.received); | ||
this.socket.on("error", this.handle_error); | ||
return this.socket.on("open", this.opened); | ||
@@ -89,2 +91,6 @@ }; | ||
DDPClient.prototype.handle_error = function(error) { | ||
this.emit("connect-error", error); | ||
}; | ||
DDPClient.prototype.call = function(identifier, method, params) { | ||
@@ -91,0 +97,0 @@ var id; |
{ | ||
"name": "ddpclient", | ||
"version": "0.6.1", | ||
"version": "0.6.2", | ||
"description": "Node.js module to connect to servers using DDP protocol.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -20,2 +20,4 @@ Node.js DDP Client v0.6.1 | ||
To test your client, you may use the deployed app (http://ddpclient-tester.meteor.com), as used on the example. | ||
development | ||
@@ -22,0 +24,0 @@ =========== |
Sorry, the diff of this file is not supported yet
Non-existent author
Supply chain riskThe package was published by an npm account that no longer exists.
Found 1 instance in 1 package
9237
132
30
1