Skip to main content

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.

Import

import { Orderbook } from '@krono/core'

Usage

Use this to react to connection changes, such as showing a loading spinner during connecting or an error banner.
orderbook.onStatusUpdate((status) => {
  console.log(`Current status: ${status}`)
})

Parameters

callback

(status: ConnectionStatus) => void Receives 'disconnected' | 'connecting' | 'connected' | 'error'.

Return Type

void