New protocol version released: This page may contain outdated information.
WebSocket
Full-duplex bidirectional communication
Server-Sent Events
One-way streaming from server to client
HTTP Streaming
HTTP-based bidirectional streaming
Transport Comparison
| Feature | WebSocket | SSE | HTTP Streaming |
|---|---|---|---|
| Direction | Bidirectional | Server → Client | Bidirectional |
| Protocol | WebSocket | HTTP | HTTP |
| Reconnection | Automatic | Manual | Manual |
| Browser Support | Excellent | Excellent | Good |
| Firewall Friendly | ❌ | ✅ | ✅ |
| Proxy Support | Limited | ✅ | ✅ |
| Message Size | Unlimited | Unlimited | Unlimited |
| Latency | Low | Low | Medium |
WebSocket Transport
WebSocket provides full-duplex, bidirectional communication with automatic reconnection support.Endpoint
Client Connection
Browser Client
Configuration
Server-Sent Events (SSE)
SSE provides one-way streaming from server to client, ideal for notifications and live updates.Endpoint
Client Connection
Node.js SSE Client
Configuration
HTTP Streaming Transport
HTTP streaming provides bidirectional communication over HTTP, useful when WebSockets are blocked.Endpoint
Client Connection
Node.js HTTP Stream Client
Configuration
Transport Selection Guide
Choose WebSocket When:
- You need bidirectional communication
- Low latency is critical
- Browser support is required
- Firewalls allow WebSocket connections
Choose SSE When:
- You only need server-to-client communication
- Firewalls block WebSocket connections
- You need maximum browser compatibility
- Simple implementation is preferred
Choose HTTP Streaming When:
- WebSockets are blocked
- You need bidirectional communication over HTTP
- Proxy servers are involved
- Maximum compatibility is required
Transport Configuration
Global Transport Settings
Environment Variables
Next Steps
- Tools - Add custom tools to the server
- Authentication - Configure authentication
- Monitoring - Set up monitoring and alerting
- Deployment - Deploy to production