This real-time chat app in Next.js uses Socket.IO. Real-time updates on the web can be achieved via long-polling, server-side events, or web sockets. Long-polling involves periodic HTTP requests, server-side events use the browser`s event source API, while web sockets enable two-way communication between client and server.