Comparing version 0.1.18 to 0.1.19
{ | ||
"name": "cheshire", | ||
"version": "0.1.18", | ||
"version": "0.1.19", | ||
"description": "Turn based boardgame framework based on websocket", | ||
@@ -5,0 +5,0 @@ "main": "server/Cheshire.js", |
@@ -0,1 +1,2 @@ | ||
var ws = require('ws'); | ||
var Storage = require('./data'); | ||
@@ -96,2 +97,3 @@ var Room = require('./room'); | ||
User.prototype.send = function(data) { | ||
if (ws.WebSocket.OPEN !== this.socket.readyState) return; | ||
this.socket.send(JSON.stringify(data)); | ||
@@ -98,0 +100,0 @@ }; |
Sorry, the diff of this file is not supported yet
47559
296