Merge pull request #215 from Stefdv/patch-1

ws error on send
This commit is contained in:
Mark Nadal 2016-09-17 15:36:38 -06:00 committed by GitHub
commit fdf08154ba
2 changed files with 3 additions and 3 deletions

4
gun.js
View File

@ -1350,7 +1350,7 @@
if(res.body || res.end){ delete r.ws.cbs[req.headers['ws-rid']] }
cb(err,res);
}
ws.send(JSON.stringify(req));
ws.send(JSON.stringify(req),function(err){})
return true;
}
if(ws === false){ return }
@ -1474,4 +1474,4 @@
}());
if(typeof window !== "undefined"){ Gun.request = request }
if(typeof module !== "undefined" && module.exports){ module.exports.request = request }
}.bind(this || module)({}));
}.bind(this || module)({}));

View File

@ -1,6 +1,6 @@
{
"name": "gun",
"version": "0.3.992",
"version": "0.3.993",
"description": "Graph engine",
"main": "index.js",
"scripts": {