From 6c2df3f59ccfa9fdd32395ca3f1a9c540095b9f8 Mon Sep 17 00:00:00 2001 From: cubedro Date: Wed, 17 Jun 2015 04:10:27 +0300 Subject: [PATCH] fixed bug --- app.js | 1 + 1 file changed, 1 insertion(+) diff --git a/app.js b/app.js index 8db2b1d..61f9c5b 100644 --- a/app.js +++ b/app.js @@ -344,6 +344,7 @@ client.on('connection', function (clientSpark) clientSpark.on('client-pong', function (data) { + var serverTime = _.get(data, "serverTime", 0); var latency = Math.ceil( (_.now() - data.serverTime) / 2 ); clientSpark.emit('client-latency', { latency: latency });