This monorepo contains three separate applications using WebSockets:
- Expo (React Native): A mobile app for real-time communication.
- NestJS: A backend WebSocket server.
- Next.js: A frontend web app utilizing WebSockets.
WebSocket/
│ ├── Expo/ # React Native app with WebSocket client
│ ├── Nest/ # WebSocket gateway using NestJS
│ ├── Next/ # Web app with WebSocket client
├── README.md # Project documentation
- Connects to the WebSocket server.
- Listens for real-time messages.
- Sends messages via WebSockets.
- Implements WebSocket gateway using
@nestjs/websockets
andsocket.io
. - Broadcasts messages to connected clients.
- Manages WebSocket connections efficiently.
- Establishes WebSocket connection.
- Displays incoming real-time messages.
- Sends messages through WebSockets.
git clone https://github.com/Sworzen1/WebSocket.git
cd Nest
yarn install
yarn start:dev
cd Next
npm install
npm run dev
cd Expo
yarn install
yarn start
- Client connects to the server.
- User sends a message from Expo or Next.js.
- NestJS receives the message and broadcasts it to all clients.
- Clients receive and display the message in real-time.
- Authentication for WebSocket connections.
- Improved UI/UX for message handling.
- Database integration for persistent messaging.
This project is licensed under the MIT License.