Skip to content

Instantly share code, notes, and snippets.

@pareshchouhan
Created August 13, 2014 08:47
Show Gist options
  • Select an option

  • Save pareshchouhan/da24b7dc807f0fe8cebb to your computer and use it in GitHub Desktop.

Select an option

Save pareshchouhan/da24b7dc807f0fe8cebb to your computer and use it in GitHub Desktop.
[playerService] [pserv.remove] Removed Player :{"uid":"TEST_53","sid":"_GkAWm8HO5wZonu3AAAA","token":"b76d577a3df899f8c
59405af38fe0210f4c4f41","tableIndex":null,"canPlay":true,"hasFolded":false,"hand":null,"isActive":false,"playerCards":[
,"totalCards":[],"playerData":{}}
[gameNetworking] [io.on.connection] Got a hit!
[gameNetworking] [socket.on.join] checking token
{"uid":"TEST_29","token":"b76d577a3df899f8cb59405af38fe0210f4c4f41"}
[playerService] [pserv.add] Verifying token of client ...
[playerService] [pserv.add] Token Verified
[player] [player.player] Registering Player
[ { uid: 'TEST_29',
sid: 'EN6268uV2Ma6YlACAAAB',
token: 'b76d577a3df899f8cb59405af38fe0210f4c4f41',
tableIndex: null,
canPlay: true,
hasFolded: false,
hand: null,
isActive: false,
playerCards: [],
totalCards: [],
playerData: {} } ]
Executing game Loop routine
[gameNetworking] [request_join_table] got request_join_table for tIndex = 4
[gameService] [addPlayer] added Player to tIndex = 4
C:\Users\Paresh\Documents\GitHub\pokerp\gameNetworking.js:125
self.io.connected[player.sid].emit('playerdata',player.getPlayerData());
^
TypeError: Cannot read property 'EN6268uV2Ma6YlACAAAB' of undefined
at C:\Users\Paresh\Documents\GitHub\pokerp\gameNetworking.js:125:21
at Array.forEach (native)
at Function._.each._.forEach (C:\Users\Paresh\Documents\GitHub\pokerp\node_modules\underscore\underscore.js:79:11)
at gn.broadcastPlayersData (C:\Users\Paresh\Documents\GitHub\pokerp\gameNetworking.js:122:4)
at g.update (C:\Users\Paresh\Documents\GitHub\pokerp\game.js:53:22)
at wrapper [as _onTimeout] (timers.js:261:14)
at Timer.listOnTimeout [as ontimeout] (timers.js:112:15)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment