| @@ -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,6 +1,6 @@ | |||
| { | |||
| "name": "socksugar", | |||
| "version": "0.3.1", | |||
| "version": "0.3.2", | |||
| "description": "Websockets with sugar on top.", | |||
| "main": "index.js", | |||
| "scripts": { | |||