Skip to content

Latest commit

 

History

History
32 lines (24 loc) · 623 Bytes

File metadata and controls

32 lines (24 loc) · 623 Bytes

WebSocket Server

Overview

This directory contains the WebSocket server responsible for real-time messaging and notifications.

Features

  • Real-time text, voice, and video communication
  • Live notifications for messages and job updates
  • Secure connection handling

Setup

Run the WebSocket server:

npm install
npm start

Configuration

Modify .env for WebSocket settings:

SOCKET_PORT=5001

Connection Example

Frontend connection:

const socket = new WebSocket(process.env.REACT_APP_SOCKET_URL);
socket.onopen = () => console.log("Connected to WebSocket");