@@ -282,27 +282,29 @@ export type PredictControllerSubscribeToCryptoPricesAction = {
282282 handler : PredictController [ 'subscribeToCryptoPrices' ] ;
283283} ;
284284
285- /**
286- * Gets the current WebSocket connection status for live data feeds.
287- *
288- * @returns Connection status for sports, market, and RTDS data WebSocket channels
289- */
290- export type PredictControllerGetConnectionStatusAction = {
291- type : `PredictController:getConnectionStatus`;
292- handler : PredictController [ 'getConnectionStatus' ] ;
293- } ;
294-
295285/**
296286 * Subscribes to WebSocket connection-status changes for live data feeds.
287+ * The callback fires immediately with the current status and thereafter only
288+ * on real transitions, replacing per-subscriber polling.
297289 *
298- * @param callback - Function invoked with the current connection status .
290+ * @param callback - Function invoked with the current { @link ConnectionStatus} .
299291 * @returns Unsubscribe function to clean up the subscription.
300292 */
301293export type PredictControllerSubscribeToConnectionStatusAction = {
302294 type : `PredictController:subscribeToConnectionStatus`;
303295 handler : PredictController [ 'subscribeToConnectionStatus' ] ;
304296} ;
305297
298+ /**
299+ * Gets the current WebSocket connection status for live data feeds.
300+ *
301+ * @returns Connection status for sports, market, and RTDS data WebSocket channels
302+ */
303+ export type PredictControllerGetConnectionStatusAction = {
304+ type : `PredictController:getConnectionStatus`;
305+ handler : PredictController [ 'getConnectionStatus' ] ;
306+ } ;
307+
306308export type PredictControllerClearOrderErrorAction = {
307309 type : `PredictController:clearOrderError`;
308310 handler : PredictController [ 'clearOrderError' ] ;
@@ -438,8 +440,8 @@ export type PredictControllerMethodActions =
438440 | PredictControllerSubscribeToMarketPricesAction
439441 | PredictControllerSubscribeToOrderbookAction
440442 | PredictControllerSubscribeToCryptoPricesAction
441- | PredictControllerGetConnectionStatusAction
442443 | PredictControllerSubscribeToConnectionStatusAction
444+ | PredictControllerGetConnectionStatusAction
443445 | PredictControllerClearOrderErrorAction
444446 | PredictControllerOnPlaceOrderSuccessAction
445447 | PredictControllerClearActiveOrderTransactionIdAction
0 commit comments