Deep Dive

Server Push with SSE

Deep dive into Server-Sent Events for server push in Oorian.

M. WarbleNovember 5, 20261 min read
Server Push with SSE

SSE (Server-Sent Events) enables the server to push updates to the browser. It's simpler than WebSocket and perfect for many use cases.

When to Use SSE

  • Dashboards with live data
  • Notification systems
  • Progress updates
  • Live feeds

SSE vs WebSocket

SSE: Server pushes, client uses HTTP for actions

WebSocket: Full bidirectional, persistent connection

Implementation

@Page(value = "/notifications", communication = Communication.SSE)
public class NotificationsPage extends HtmlPage
{
    public void pushNotification(String message)
    {
        notificationArea.addElement(createNotification(message));
        // Changes automatically pushed via SSE
    }
}

Conclusion

SSE is the sweet spot for server push—simpler than WebSocket, works with standard HTTP infrastructure.

Related Articles

Security

Security by Default: How Oorian Protects Your Applications

January 11, 2026
Announcement

Why We Built Oorian: The Story Behind the Framework

January 7, 2026
Tutorial

Getting Started with Oorian: Your First Java Web Application

December 31, 2025