A real-time chat implementation using WebSocket protocol, designed to demonstrate core networking concepts.
Features:
✔ Instant messaging via WebSocket
✔ User presence notifications
✔ Simple JavaScript implementation
- Established WebSocket connections between server and multiple clients
- Implemented JSON message protocol for event types (chat, presence, system)
- Managed socket lifecycle events (
onopen,onmessage,onclose,onerror)
- Built centralized messaging architecture
- Developed user presence tracking (join/leave notifications)
- Implemented immediate message display on client-side before server confirmation
- Configured Node.js WebSocket server on Render
- Deployed static frontend via GitHub Pages and Cloudflare Pages
- Handled WebSocket security through connection validation
Frontend: Vanilla JavaScript
Backend: Node.js + WS (WebSocket)
Infra: Render (Backend) + GitHub Pages + (Currently)Cloudflare Pages(Frontend)