this._replied = true; | this._replied = true; | ||||
} | } | ||||
Request.prototype.error = function(msg) { | |||||
Request.prototype.fail = function(msg) { | |||||
if (this._replied) | if (this._replied) | ||||
throw new Error("Already replied."); | throw new Error("Already replied."); | ||||
{ | { | ||||
"name": "socksugar", | "name": "socksugar", | ||||
"version": "0.2.0", | |||||
"version": "0.3.0", | |||||
"description": "Websockets with sugar on top.", | "description": "Websockets with sugar on top.", | ||||
"main": "index.js", | "main": "index.js", | ||||
"scripts": { | "scripts": { |