mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-05 02:39:46 +02:00
Update
This commit is contained in:
parent
c1846f65d3
commit
e3adf3691c
1 changed files with 1 additions and 1 deletions
|
@ -105,7 +105,7 @@ function socketConnect() {
|
||||||
parseSocketResponse();
|
parseSocketResponse();
|
||||||
|
|
||||||
if (json.type == webSocketTypes.MSG_TO_ALL && Array.isArray(json.msg)) {
|
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) {
|
if (Array.isArray(json.lastMessageToAllDurationMessages) && json.lastMessageToAllDurationMessages.length > 0) {
|
||||||
console.log("Socket force to disconnect ", json.lastMessageToAllDurationMessages.length, "users.");
|
console.log("Socket force to disconnect ", json.lastMessageToAllDurationMessages.length, "users.");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue