Measuring time the player needed to answer

This commit is contained in:
Mawoka
2022-09-23 21:07:51 +02:00
parent e2814c7944
commit 6af4693f0b
5 changed files with 224 additions and 122 deletions
+4
View File
@@ -56,6 +56,10 @@
event.returnValue = '';
};
socket.on('time_sync', (data) => {
socket.emit('echo_time_sync', data);
});
// Socket-events
socket.on('joined_game', (data) => {
gameData = data;