Browse Source

some api changes

master
mort 8 years ago
parent
commit
0242e597c2
2 changed files with 2 additions and 2 deletions
  1. 1
    1
      index.js
  2. 1
    1
      package.json

+ 1
- 1
index.js View File

@@ -24,7 +24,7 @@ var util = require("util");
this._replied = true;
}

Request.prototype.error = function(msg) {
Request.prototype.fail = function(msg) {
if (this._replied)
throw new Error("Already replied.");


+ 1
- 1
package.json View File

@@ -1,6 +1,6 @@
{
"name": "socksugar",
"version": "0.2.0",
"version": "0.3.0",
"description": "Websockets with sugar on top.",
"main": "index.js",
"scripts": {

Loading…
Cancel
Save