Experience · Interface
WebSocket Channel
InterfaceExperienceExperience & Human Oversightarc:WebSocketChannel
A persistent full-duplex interface, established by an HTTP upgrade handshake, over which client and server exchange messages at any time during generation.
Responsibility. Carries streamed agent output and concurrent client messages over one persistent connection.
Also known as: Bidirectional streaming channel
Variant of Streaming Transport abstract
When to choose. Choose for genuinely interactive scenarios: agents expecting mid-stream user feedback or interruption, collaborative multi-user agent sessions, or real-time dashboards whose pushed updates need client acknowledgment.
Relationships
sends data to dynamic
alternative to variability
Design guidance
- MUST be paired with explicit connection state handling, idle timeouts, and reconnection logic.
Classification
- Patterns
- Mid-stream interruptionAgent-ID-tagged multi-agent streamsServer progress status messagesClient heartbeat pings
- Technologies
- WebSocket
- Quality attributes
- Interaction capability (ISO/IEC 25010)
Sources
- Ch2.9: T. Nguyen, "Streaming and Real-Time Responses," in Mastering Agentic AI Systems: Guide for the NVIDIA NCP-AAI Exam, 1st ed. 2026, ch. 2.9. ISBN: 9798244538229.