+
Status: {() => sub.status()}
+ {/* sub.status(): 'connecting' | 'connected' | 'disconnected' | 'error' */}
+
+ )
+}
+```
+
+### Subscription Options
+
+| Option | Type | Default | Description |
+| --- | --- | --- | --- |
+| `url` | `string \| () => string` | required | WebSocket URL (can be reactive) |
+| `protocols` | `string \| string[]` | — | WebSocket sub-protocols |
+| `onMessage` | `(event, queryClient) => void` | required | Message handler with query client access |
+| `onOpen` | `(event) => void` | — | Connection opened callback |
+| `onClose` | `(event) => void` | — | Connection closed callback |
+| `onError` | `(event) => void` | — | Error callback |
+| `reconnect` | `boolean` | `true` | Auto-reconnect on disconnect |
+| `reconnectDelay` | `number` | `1000` | Initial reconnect delay (ms), doubles each retry |
+| `maxReconnectAttempts` | `number` | `10` | Max reconnect attempts (0 = unlimited) |
+| `enabled` | `boolean \| () => boolean` | `true` | Enable/disable the connection |
+
+### Return Value
+
+| Property | Type | Description |
+| --- | --- | --- |
+| `status` | `Signal