Documentation Index
Fetch the complete documentation index at: https://krono.fabianpiper.com/docs/llms.txt
Use this file to discover all available pages before exploring further.
This hook requires the
OrderbookProvider to be present in your component tree to provide the underlying Orderbook instance.Import
Usage
Parameters
This hook does not accept any parameters. It automatically interfaces with theOrderbook instance provided by the nearest context provider.
Return Type
State
The current state of the WebSocket connection.
Actions
Initiates a connection to the exchange WebSocket. If a connection is already in progress or open, this method usually performs no action.
Gracefully closes the active WebSocket connection and stops data processing.
Examples
Connection
Ensure a connection is active when a component mounts.Reconnection Status UI
Becausestatus is reactive, you can use it to drive complex UI states like loading spinners or error banners.
Related
Orderbook Core
Explore the underlying class logic and connection event emitters.
useOrderbookStatus
The internal hook used to track refined connection states.
useOrderbookConfig
Change symbols or depth before calling the connect method.
Kraken API
Explore the
book channel streams level 2 order book docs.
