websockets in faces3.php

This commit is contained in:
Ruben 2016-11-01 22:38:52 +01:00
parent 36be41bafc
commit 7e53e1666a

View file

@ -430,6 +430,7 @@ echo "</div>"; // .currentHit
location.reload(); location.reload();
} }
socket.onmessage = function(e){ socket.onmessage = function(e){
console.log(e.data);
var message = JSON.parse(e.data); var message = JSON.parse(e.data);
// var server_message = e.data; // var server_message = e.data;
console.log(message); console.log(message);