A Node.js Socket.IO server that powers the real-time collaborative features of CodeSync - a real-time collaborative code editor.
This socket server handles all real-time communication between users in CodeSync, including:
- Real-time code collaboration - Live code synchronization between users
- Video calling - WebRTC signaling for face-to-face collaboration
- Room management - User joining/leaving and room status tracking
- Code execution - Synchronized code running and output sharing
- Node.js - JavaScript runtime
- Express.js - Web server framework
- Socket.IO - Real-time WebSocket communication
- TypeScript - Type-safe JavaScript
- Node.js 18.0.0 or higher
-
Clone the repository
git clone https://github.com/prayag78/socket-server cd socket-server -
Install dependencies
npm install
-
Start the development server
npm run dev
The server will run on
http://localhost:8000
This server is designed to work with the CodeSync frontend. The frontend connects to this server using Socket.IO client and expects the events documented above.
In your CodeSync frontend, set the socket server URL:
NEXT_PUBLIC_SOCKET_URL=http://localhost:8000- Frontend Repository: prayag78/codesync
- Live Demo: https://codesync.vercel.app