Does SSLcat support WebSocket?
Yes, SSLcat offers native, high-performance support for the WebSocket protocol, allowing it to act as a secure reverse forwarding for your real-time applications.
SSL/TLS Termination for WebSocket (WSS)
To configure a secure WebSocket connection:
proxies:
- domain: "wss.example.com"
target: "wss://localhost:8080"
protocol: "wss"
websocket:
enabled: true
ssl_verify: false
Advanced Configuration
Advanced WebSocket configuration options:
proxies:
- domain: "ws.example.com"
target: "ws://localhost:8080"
protocol: "ws"
websocket:
enabled: true
ping_interval: 30
pong_timeout: 10
max_message_size: 1048576
compression: true
Load Balancing
WebSocket load balancing configuration:
proxies:
- domain: "ws.example.com"
targets:
- "ws://backend1.example.com:8080"
- "ws://backend2.example.com:8080"
- "ws://backend3.example.com:8080"
protocol: "ws"
load_balance: "ip_hash"
websocket:
enabled: true
Use Cases
Typical use cases for WebSocket:
- Real-time Chat - Instant messaging applications
- Online Gaming - Multiplayer online games
- Real-time Data - Stock tickers, monitoring data
- Collaborative Tools - Online document editing
Monitoring and Debugging
WebSocket connection monitoring:
- Connection Statistics - Displays the number of WebSocket connections
- Message Statistics - Displays message send/receive statistics
- Connection Status - Shows connection status and duration
- Error Monitoring - Monitors connection errors and exceptions
SSLcat's WebSocket support makes it easy to build real-time applications.