1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-05 02:39:46 +02:00
This commit is contained in:
Daniel Neto 2024-11-15 11:39:56 -03:00
parent c1846f65d3
commit e3adf3691c

View file

@ -105,7 +105,7 @@ function socketConnect() {
parseSocketResponse();
if (json.type == webSocketTypes.MSG_TO_ALL && Array.isArray(json.msg)) {
console.log("Socket onmessage contains", json.msg.length, "messages. lastMessageToAllDuration="+(json.lastMessageToAllDuration).toFixed(4)+" average time=" + (json.lastMessageToAllDuration / json.users_id_online.length).toFixed(4) + " seconds");
console.log("Socket onmessage contains", json.msg.length, "messages. lastMessageToAllDuration=" + (json.lastMessageToAllDuration).toFixed(4) + " average time=" + (json.lastMessageToAllDuration / json.users_id_online.length).toFixed(4) + " seconds");
if (Array.isArray(json.lastMessageToAllDurationMessages) && json.lastMessageToAllDurationMessages.length > 0) {
console.log("Socket force to disconnect ", json.lastMessageToAllDurationMessages.length, "users.");