# atmosphere | Atmosphere Framework | Knowledge Base | Instagit

Stream Real Time and LLM response data over WebSocket, SSE, and the MCP protocol

GitHub Stars: 3.7k

Repository: https://github.com/atmosphere/atmosphere

---

## Articles

### [How to Debug Atmosphere Connection Issues and Troubleshoot Transport Failures](/atmosphere/atmosphere/how-to-debug-atmosphere-connection-issues)

Debug Atmosphere connection issues and troubleshoot transport failures by enabling DEBUG logging and inspecting transport lifecycle events. Quickly isolate and resolve common problems.

- Tags: how-to-guide
- Published: 2026-02-25

### [How to Secure Atmosphere Endpoints with Authentication and Authorization](/atmosphere/atmosphere/how-to-secure-atmosphere-endpoints)

Secure Atmosphere endpoints with Java EE security APIs. Learn how to implement authentication and authorization using AtmosphereRequest getUserPrincipal and isUserInRole.

- Tags: how-to-guide
- Published: 2026-02-25

### [How to Configure Heartbeat Interval and Ping-Pong for Connection Health in Atmosphere](/atmosphere/atmosphere/how-to-configure-heartbeat-ping-pong-in-atmosphere)

Master Atmosphere connection health. Configure server heartbeatIntervalInSeconds, clientHeartbeatFrequencyInSeconds and WebSocketPingPongListener for reliable communication.

- Tags: how-to-guide
- Published: 2026-02-25

### [How Transport Negotiation Works Between WebSocket, SSE, and Long-Polling in Atmosphere](/atmosphere/atmosphere/how-transport-negotiation-works-in-atmosphere)

Discover how Atmosphere negotiates transports for real-time communication. Learn about the fallback process between WebSocket, SSE, and Long-Polling for reliable connections.

- Tags: internals
- Published: 2026-02-25

### [How to Implement a Custom Broadcaster for Message Distribution in Atmosphere](/atmosphere/atmosphere/how-to-implement-custom-broadcaster-in-atmosphere)

Learn to implement a custom broadcaster for message distribution in Atmosphere. Extend SimpleBroadcaster or implement the interface and override broadcast methods for efficient message delivery.

- Tags: how-to-guide
- Published: 2026-02-25

### [How to Implement a Custom AtmosphereInterceptor for Request/Response Processing](/atmosphere/atmosphere/how-to-implement-custom-atmosphereinterceptor)

Learn how to implement custom AtmosphereInterceptor for request/response processing. Extend AtmosphereInterceptorAdapter to modify requests/responses and control flow. Register via InterceptorRegistry or web.xml.

- Tags: how-to-guide
- Published: 2026-02-25

### [How AtmosphereFramework Initialization and Configuration Works: The Complete Lifecycle Guide](/atmosphere/atmosphere/how-atmosphereframework-initialization-works)

Uncover AtmosphereFramework initialization and configuration. Explore its seven-phase pipeline, Servlet/Filter transformation, and flexible configuration options for building async WebSocket and SSE applications.

- Tags: deep-dive
- Published: 2026-02-25

### [How to Implement OpenTelemetry Tracing with AtmosphereInterceptor in Atmosphere 4.0](/atmosphere/atmosphere/how-to-implement-opentelemetry-tracing-in-atmosphere)

Learn to implement OpenTelemetry tracing with AtmosphereInterceptor in Atmosphere 4.0. Automatically generate spans for WebSocket and HTTP requests, enriching them with crucial details.

- Tags: how-to-guide
- Published: 2026-02-25

### [How to Expose Micrometer Metrics from AtmosphereFramework: A Complete Guide](/atmosphere/atmosphere/how-to-expose-micrometer-metrics-from-atmosphere)

Learn how to expose Micrometer metrics from AtmosphereFramework. Integrate easily with Spring Boot or manually install metrics for enhanced monitoring and observability.

- Tags: how-to-guide
- Published: 2026-02-25

### [How to Configure Message Caching with UUIDBroadcasterCache in Atmosphere](/atmosphere/atmosphere/how-to-configure-caching-in-atmosphere)

Learn to configure message caching using UUIDBroadcasterCache in Atmosphere Set message TTL per-client limits and eviction intervals via web xml or AtmosphereConfig for efficient message handling.

- Tags: how-to-guide
- Published: 2026-02-25

### [How to Configure Backpressure Protection with BackpressureInterceptor in Atmosphere](/atmosphere/atmosphere/how-to-configure-backpressure-in-atmosphere)

Learn to configure backpressure protection with Atmosphere's BackpressureInterceptor. Limit pending messages per client using web.xml or AtmosphereConfig for better performance.

- Tags: how-to-guide
- Published: 2026-02-25

### [How to Build a GraalVM Native Image for Quarkus with Atmosphere](/atmosphere/atmosphere/how-to-build-graalvm-native-image-for-quarkus-atmosphere)

Learn to build a GraalVM native image for Quarkus with Atmosphere. Activate the native Maven profile for efficient, lightweight deployments, avoiding heavy thread pools.

- Tags: how-to-guide
- Published: 2026-02-25

### [How to Use atmosphere.js Svelte Stores: A Complete Guide to createAtmosphereStore and createRoomStore](/atmosphere/atmosphere/how-to-use-atmospherejs-svelte-stores)

Explore atmosphere.js Svelte stores createAtmosphereStore and createRoomStore. Master WebSocket subscriptions and room presence management with auto-connection lifecycle handling. Get started today.

- Tags: how-to-guide
- Published: 2026-02-25

### [How to Use atmosphere.js Vue Composables: A Complete Guide to useAtmosphere, useRoom, and usePresence](/atmosphere/atmosphere/how-to-use-atmospherejs-vue-composables)

Master atmosphere.js Vue composables useAtmosphere, useRoom, and usePresence. This guide simplifies connection management, broadcasting, and presence tracking for your Vue 3 apps.

- Tags: how-to-guide
- Published: 2026-02-25

### [How to Implement Durable Sessions that Survive Server Restarts with Atmosphere SessionStore](/atmosphere/atmosphere/how-to-implement-durable-sessions-in-atmosphere)

Implement durable sessions surviving server restarts with Atmosphere SessionStore. Persist broadcast state to SQLite, Redis, or custom backends for seamless client reconnections.

- Tags: how-to-guide
- Published: 2026-02-25

### [How to Configure Kafka Clustering with KafkaBroadcaster in Atmosphere](/atmosphere/atmosphere/how-to-configure-kafka-clustering-with-atmosphere)

Learn to configure Kafka clustering in Atmosphere using KafkaBroadcaster. Set essential init parameters like bootstrap servers, topic prefix, and group ID for seamless integration.

- Tags: how-to-guide
- Published: 2026-02-25

### [How to Configure Redis Clustering with RedisBroadcaster in Atmosphere](/atmosphere/atmosphere/how-to-configure-redis-clustering-with-atmosphere)

Learn to configure Redis clustering in Atmosphere using RedisBroadcaster or RedisClusterBroadcastFilter for scalable pub/sub messaging across your JVM nodes. Set org.atmosphere.redis.url and password for seamless integration.

- Tags: how-to-guide
- Published: 2026-02-25

### [How to Stream AI LLM Token-by-Token Responses to Browsers Using @AiEndpoint](/atmosphere/atmosphere/how-to-stream-ai-llm-responses-with-atmosphere)

Stream AI LLM token-by-token responses to browsers with @AiEndpoint. Atmosphere Framework pushes LLM tokens to browsers via WebSocket or SSE, no boilerplate needed.

- Tags: how-to-guide
- Published: 2026-02-25

### [How to Create an MCP Server Using the @McpServer Annotation in Atmosphere](/atmosphere/atmosphere/how-to-create-mcp-server-with-atmosphere)

Learn to create an MCP server in Atmosphere using the McpServer annotation. Automatically register tools, resources, and prompts via WebSocket for a fully functional endpoint.

- Tags: how-to-guide
- Published: 2026-02-25

### [How to Implement Rooms with Presence Tracking in Atmosphere: A Complete Guide](/atmosphere/atmosphere/how-to-implement-rooms-with-presence-tracking-in-atmosphere)

Implement rooms with presence tracking in Atmosphere using RoomManager. Learn to register listeners and trigger join/leave events automatically for seamless user presence management.

- Tags: how-to-guide
- Published: 2026-02-25

### [How Atmosphere Handles WebSocket Fallback to SSE or Long-Polling When WebSocket Is Unavailable](/atmosphere/atmosphere/how-atmosphere-handles-websocket-fallback-to-sse-or-long-polling)

Discover how Atmosphere seamlessly handles WebSocket fallback to SSE or Long-Polling when WebSocket is unavailable. Ensure reliable connections with automatic transport degradation.

- Tags: how-to-guide
- Published: 2026-02-25

