@somnia-chain/markets-sdk / index / PriceWatchHandle
Interface: PriceWatchHandle
Defined in: priceFeed/priceFeed.ts:28
A live price watch. stop() releases it (idempotent); the underlying
subscription is shared and torn down when the last handle stops.
Methods
stop()
stop():
void
Defined in: priceFeed/priceFeed.ts:36
Release this handle's reference on the asset's watch (idempotent — extra calls are no-ops). Handles on the same asset share one subscription; stopping the LAST one tears the asset down after a short linger (which absorbs unmount/remount without re-snapshotting): the socket closes, the asset's rows are purged, and live price reads for it return null/empty again.
Returns
void