https://github.com/pedrinvits/chatfly-api
A chat app aplication using socket.io
https://github.com/pedrinvits/chatfly-api
nestjs socket-io
Last synced: about 2 months ago
JSON representation
A chat app aplication using socket.io
- Host: GitHub
- URL: https://github.com/pedrinvits/chatfly-api
- Owner: Pedrinvits
- Created: 2024-09-04T11:22:59.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2024-09-04T19:50:34.000Z (almost 2 years ago)
- Last Synced: 2025-01-05T16:12:36.537Z (over 1 year ago)
- Topics: nestjs, socket-io
- Language: TypeScript
- Homepage:
- Size: 110 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
The backend API is built using Nest Js and Socket.io to facilitate real-time, bidirectional communication between the server and clients. It operates on port 3002 and is configured with CORS to accept connections from any origin. Each new connection is assigned a unique socket.id to identify users. The API supports various events such as New message, which handles and broadcasts incoming messages to all connected clients, ensuring message synchronization across the chat application. The API is optimized for low latency and high concurrency, leveraging Socket.io's WebSocket protocol with fallback options to support a wide range of client environments.