When using long-lived WebSocket connections with Salad's networking, there are a couple things you need to be aware of.
- The WebSocket protocol doesn't allow passing headers of any kind, including authorization headers. This means you must disable authentication when you enable networking for your container group. Your container will get assigned a highly unique domain name as a secure alternative to the
- Idle connections get terminated after 100 seconds. This means you need to send a heartbeat through the WebSocket connection periodically to keep the connection alive.
Updated 14 days ago