Browse Source

fixed crash issue

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

+ 2
- 1
index.js View File

@@ -69,7 +69,8 @@ var util = require("util");

//Generic internal send function
Socket.prototype._send = function(data) {
this._websock.send(JSON.stringify(data));
if (this._ready)
this._websock.send(JSON.stringify(data));
}

//Trigger event on the client

+ 1
- 1
package.json View File

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

Loading…
Cancel
Save