Skip to main content
New protocol version released: This page may contain outdated information.
Choose the perfect transport protocol for your HAIP Server deployment. From high-performance WebSocket connections to firewall-friendly SSE and flexible HTTP streaming, support diverse client environments and network configurations.

WebSocket

Full-duplex bidirectional communication

Server-Sent Events

One-way streaming from server to client

HTTP Streaming

HTTP-based bidirectional streaming

Transport Comparison

FeatureWebSocketSSEHTTP Streaming
DirectionBidirectionalServer → ClientBidirectional
ProtocolWebSocketHTTPHTTP
ReconnectionAutomaticManualManual
Browser SupportExcellentExcellentGood
Firewall Friendly
Proxy SupportLimited
Message SizeUnlimitedUnlimitedUnlimited
LatencyLowLowMedium

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