Skip to content

Commit df30cb4

Browse files
committed
chore(predict): regenerate messenger action types for subscribeToConnectionStatus
1 parent 4a0efc0 commit df30cb4

1 file changed

Lines changed: 14 additions & 12 deletions

File tree

app/components/UI/Predict/controllers/PredictController-method-action-types.ts

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -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
*/
301293
export 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+
306308
export 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

Comments
 (0)