Jul 11, 2024
websocat)connect, disconnect, getClients, sendMessage, getMessages.clients (real-time connected users) and messages (conversation history).serverless.yaml.messages table and sends it to the recipient if connected.websocat) to ensure proper functionality.useState, useEffect, useRef) to manage state and WebSocket connections.onopen, onmessage, onsend events to interact with the back-end.