empty the pong to minimum set up

This commit is contained in:
NigeParis 2025-12-13 08:57:38 +01:00 committed by Maix0
parent 7c20066b63
commit 5354c01bad
15 changed files with 156 additions and 687 deletions

View file

@ -1,4 +1,4 @@
import { addMessage } from "./addMessage";
import { addPongMessage } from "./addPongMessage";
import { Socket } from 'socket.io-client';
import { getUser } from "@app/auth";
@ -10,7 +10,7 @@ import { getUser } from "@app/auth";
*/
export function broadcastMsg (socket: Socket, msgCommand: string[]): void {
let msgText = msgCommand[1] ?? "";
addMessage(msgText);
addPongMessage(msgText);
const user = getUser();
if (user && socket?.connected) {
const message = {