diff www/m/js/nodescore-slides.js @ 49:ddb09f0a67fd

begining of attempt at modularisation
author tzara <rc-web@kiben.net>
date Sat, 13 Oct 2012 00:17:52 +0000
parents 7f0485e0d0ff
children 66bf613fb818
line wrap: on
line diff
--- a/www/m/js/nodescore-slides.js	Wed Sep 12 09:50:37 2012 +0100
+++ b/www/m/js/nodescore-slides.js	Sat Oct 13 00:17:52 2012 +0000
@@ -181,10 +181,9 @@
 // to specific client..
 //////////////////////////////////////////////
 // Latency "Pong"
+socket.on("timeFromServer", function(n) { 
+    socket.emit("clientTimeResponse",n); });
 
-socket.on("timeFromServer", function(n) { 
-    socket.emit("clientTimeResponse",n);
-});
 socket.on("latencyFromServer", function(latency) {
     $("#client_latency").text("Latency: "+latency+"ms.")
     //console.log(latency)