> ## 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.

# Connect

> Method to establish the Kraken WebSocket connection.

## Import

```ts theme={null}
import { Orderbook } from '@krono/core'
```

## Usage

Call this method to start the connection sequence. It will open the socket, subscribe to the channel, and request the initial snapshot.

```ts theme={null}
const orderbook = new Orderbook({ symbol: 'BTC/USD' })

await orderbook.connect()
```

## Return Type

```ts theme={null}
Promise<void>
```

Returns a promise that resolves when the subscription is successfully confirmed by the Kraken WebSocket API.
