Comparing version 0.1.26 to 0.1.27
{ | ||
"name": "cheshire", | ||
"version": "0.1.26", | ||
"version": "0.1.27", | ||
"description": "Turn based boardgame framework based on websocket", | ||
@@ -5,0 +5,0 @@ "main": "server/Cheshire.js", |
@@ -38,3 +38,3 @@ var ws = require('ws'); | ||
})); | ||
socket.once(onName); | ||
socket.once('message', onName); | ||
return; | ||
@@ -41,0 +41,0 @@ } |
@@ -5,6 +5,7 @@ var Storage = require('./data'); | ||
this.name = name; | ||
this.users = [master.name]; | ||
this.users = []; | ||
this.rule = Storage.defaultRule; | ||
console.log('new Room : ' + JSON.stringify(this)); | ||
this.isPlaying = false; | ||
this.join(master); | ||
} | ||
@@ -11,0 +12,0 @@ |
Sorry, the diff of this file is not supported yet
48280
320