WebSocket Connection Best Practices

Open · 1 1s
Engineering Sun 12 Apr 2026

Here are some best practices for configuring Sandstar Web Socket connections in production:

  1. Use a dedicated WebSocket port - Keep the WebSocket server on its own port (default 7070) separate from your SkySpark HTTP traffic.

  2. Monitor session pool usage - Each Sedona device supports a maximum of 2 concurrent SOX sessions. Use the /live/soxstatus endpoint to monitor active connections.

  3. Set appropriate timeouts - The default 5-minute idle timeout works for most use cases. For dashboards that poll less frequently, consider increasing it.

  4. Plan for reconnection - The WebSocket server handles automatic reconnection with exponential backoff. Your client code should listen for connection state changes.

Admin Sun 12 Apr 2026

Great overview. One thing to add: the session pool limit of 2 per device is a Sedona hardware constraint, not a software one. Plan your architecture accordingly.

Log in to reply.