This directory contains the WebSocket server responsible for real-time messaging and notifications.
- Real-time text, voice, and video communication
- Live notifications for messages and job updates
- Secure connection handling
Run the WebSocket server:
npm install
npm startModify .env for WebSocket settings:
SOCKET_PORT=5001
Frontend connection:
const socket = new WebSocket(process.env.REACT_APP_SOCKET_URL);
socket.onopen = () => console.log("Connected to WebSocket");