basic setup pong - frontend and backend with simplw socket message and fastify route
This commit is contained in:
parent
5354c01bad
commit
6e6162c3f0
19 changed files with 60 additions and 641 deletions
|
|
@ -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
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue