basic setup pong - frontend and backend with simplw socket message and fastify route

This commit is contained in:
NigeParis 2025-12-13 12:08:12 +01:00 committed by Maix0
parent 5354c01bad
commit 6e6162c3f0
19 changed files with 60 additions and 641 deletions

View file

@ -3,8 +3,8 @@ import { Socket } from 'socket.io-client';
import { getUser } from "@app/auth";
/**
* function sends socket.emit to the backend to active and broadcast a message to all sockets
* echos the message with addMessage to the sender
* function sends socket.emit to the backend to active and a broadcast message to all sockets
* echos addPongMessage() the message with addMessage to the sender
* @param socket
* @param msgCommand
*/