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



//Generic internal send function //Generic internal send function
Socket.prototype._send = function(data) { 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 //Trigger event on the client

+ 1
- 1
package.json View File

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

Loading…
Cancel
Save