Skip to content
jfarcand edited this page Feb 25, 2026 · 150 revisions

Atmosphere Framework 4.0

The Atmosphere Framework makes it easy to build real-time web applications using WebSocket and Server-Sent Events (SSE) with automatic fallback to long-polling. It runs on JDK 21+ and integrates with Spring Boot 4.0, Quarkus 3.21+, and any Servlet 6.0+ container.

Atmosphere 4.0 introduces first-class Rooms with presence tracking, message history, and direct messaging — plus a fully rewritten TypeScript client with React, Vue, and Svelte hooks.

Getting Started

Pick your deployment model:

Core Concepts

AI / LLM Streaming

  • AI Streaming Guide — SPI, built-in LLM client, Spring AI, LangChain4j, Embabel adapters, client hooks

MCP Server

  • MCP Server Guide — expose tools, resources, and prompts to AI agents over WebSocket

Kotlin

  • Kotlin DSL — idiomatic handler builder and coroutine extensions

Client Libraries

gRPC Transport

  • gRPC Transport — bidirectional streaming over HTTP/2, standalone or Spring Boot integrated

Advanced Topics

Migration

Samples

Sample Framework Source
Chat WAR / Embedded Jetty samples/chat
Chat (WebSocket) Embedded Jetty samples/embedded-jetty-websocket-chat
Chat + Rooms Spring Boot 4.0 samples/spring-boot-chat
Chat Quarkus 3.21 samples/quarkus-chat
AI Chat (built-in LLM) Spring Boot 4.0 samples/spring-boot-ai-chat
AI Chat (LangChain4j) Spring Boot 4.0 samples/spring-boot-langchain4j-chat
AI Chat (Embabel Agent) Spring Boot 4.0 samples/spring-boot-embabel-chat
MCP Server Spring Boot 4.0 samples/spring-boot-mcp-server
Durable Sessions Spring Boot 4.0 samples/spring-boot-durable-sessions
gRPC Chat Embedded gRPC samples/grpc-chat

Legacy Documentation

Looking for Atmosphere 2.x documentation? See the Legacy Documentation page.

Clone this wiki locally